oracle11gr2

Only one record inserted into Oracle database from datagridview

巧了我就是萌 提交于 2019-12-12 04:33:00
问题 I am trying to read data from DataGridView and insert it into database. Everything works fine when one record is in the DataGridView , but when there is more than one record within the DataGridView I got only one record inserted and all other records are not inserted into database. I have attached the Oracle function code for more details. I think the issue caused by function since the first table order should have one record and the sub table order_details should have the list of purchased

Oracle external table date field - works in one DB and not in another

。_饼干妹妹 提交于 2019-12-12 01:02:05
问题 Here's a crazy one: the same external table definition works fine in one database, but fails in another. Not schema - database. Two databases, both on the same OS, different servers. In addition, it's failing on the 2nd date field, though both are defined the same. The NLS settings are the same on both servers, thought I thought the date mask should override that anyway. Here's the definition: -- access parameters -- http://docs.oracle.com/cd/E11882_01/server.112/e16536/et_params.htm CREATE

Character set in Oracle 11g r2 XE

岁酱吖の 提交于 2019-12-12 00:34:03
问题 I have an exported data using exp command from a full Oracle 11gR2 database that has the AR8MSWIN1256 charset. However, when I import the data into an 11gR2 XE database, I get the error: row rejected due to ORACLE error 12899 Could the problem be the mismatch in charsets ( AL32UTF8 vs AR8MSWIN1256 )? If so, is there a solution? 回答1: the table almost certainly has length semantics BYTE for the character columns. imp creates the table with the same length semantics as they were in the source

Suddenly getting ORA-12514 error Oracle 11gr2

南笙酒味 提交于 2019-12-11 14:24:22
问题 I installed Oracle 11g r2 fine, had 2 databases (se3 and mydb, both have db_domain .orcl i.e. mydb.orcl and se3.orcl) running on it fine till yesterday. but suddenly im getting ORA-12514 error (TNS:listener doesn't know of service requested in connect descriptor).. My tnsnames.ora file: # tnsnames.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. LISTENER_MYDB = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost

Generate upgrade script to ALTER TABLE based on CREATE TABLE statement in Oracle [duplicate]

落爺英雄遲暮 提交于 2019-12-11 04:40:53
问题 This question already has answers here : Automated Oracle Schema Migration Tool [closed] (5 answers) Closed 4 years ago . Is it possible in Oracle to generate a bunch of ALTER TABLE statements based on existing table in schema plus CREATE TABLE statement with newer definition of that table? Let's say I have a schema with some previous version of an application. I have an installation script for newest version of the application. The script creates all tables and sequences from scratch

SQL Oracle : how to find records maching a particular id in the column

ⅰ亾dé卋堺 提交于 2019-12-10 18:18:40
问题 My query is: select A.* from (select r.role_id, r.role_name, r.active, decode( r.entity_type_id, 1000, m.name, 3000, cour.name, 4000, 'Ensenda' ) companyName, LISTAGG(p.permission_id, ' | ') WITHIN GROUP (ORDER BY r.role_id) permission_id, LISTAGG(p.permission_name, ' | ') WITHIN GROUP (ORDER BY r.role_id) permission_name, row_number() over (order by r.created_ts desc) as RN, count(*) over () as TOTAL_ROWS, r.created_ts roleCreated from t_role r left join t_role_permission rp ON r.role_id =

How to Write Blob from Oracle Column to the File System

纵饮孤独 提交于 2019-12-10 17:48:58
问题 my_images table consists of a blob column called images. I need to write these images to my image_dir which is 'C:\TEMP'. When the following PL/SQL code is executed, only the first image is written to the directory as an image. The second blob is written as 0 byte (empty) and there is no other (Should be a total number of 8). So the loop does not seem to work correctly. I am using Oracle 11g Express Edition (XE) and SQL Developer. Here is the error and the code: Error starting at line : 53 in

Finding the datatype of a cursor or table column in a block

女生的网名这么多〃 提交于 2019-12-10 09:04:07
问题 Is is possible to find out the datatype of a column of a cursor or variable within block without using system tables? While I understand that I can use the system tables to find out this information it would be a lot slower. Something like, declare my_column_data_type varchar2(30); begin my_column_data_type := all_tables.table_name%type; dbms_output.put_line(my_column_data_type); end; I can't find any way of doing it without resorting to dbms_sql , which would be overkill for my eventual

How big is an Oracle XMLType when stored as BINARY XML

坚强是说给别人听的谎言 提交于 2019-12-10 01:52:31
问题 The Oracle documentation claims that it stores XMLType more compact as BINARY XML than as CLOB. But how do I find out how much space is taken by the binary xml? CREATE TABLE t (x XMLTYPE) XMLTYPE x STORE AS BINARY XML; SELECT vsize(x), dbms_lob.getlength(XMLTYPE.getclobval(x)) FROM t; 94 135254 94 63848 94 60188 So, vsize seems to be the size of some sort of pointer or LOB locator, and getclobval unpacks the binary XML into text. But what about the storage size of the binary XML itself?

Oracle RAC One Node

耗尽温柔 提交于 2019-12-08 08:47:22
问题 In the latest version of Oracle Database (11g Release 2), there's a new option called Real Application Clusters (RAC) One Node. What is "One Node", and how does it differ from regular RAC? 回答1: Mogens Norgaard used to joke about "single node RAC" but now it actually exists! Basically, One Node is running a RAC database on a single server, rather than across a cluster of servers. There is an Oracle white paper on the topic. Find it here. The money quote is: "Oracle RAC One Node enables: •