oracle11g

Empty package <package name> definition (no public members)

China☆狼群 提交于 2020-08-27 04:00:10
问题 I'm facing an issue when trying to run or debug a package where Oracle SQL Developer doesn't display public members (procedures) that don't have input parameters. There is a couple of procedures, some overloads, but Oracle SQL Developer doesnt display no invoke-able members. I've tried with following versions of Oracle SQL Developer 4.1.1.19 link to article saying this version solves the issue, but it didn't 4.0.3.16 - same behavior 4.0.0.13 - same behavior 3.2.20.09 - this version actually

copy from one database to another using oracle sql developer - connection failed

江枫思渺然 提交于 2020-08-21 05:47:06
问题 I am trying to copy a table from one database to another using oracle sql developer. I have the username, password and SIDs. copy from uname1/password1@SID1 to uname2/pwd2@SID2 insert table1 (*) using (select * from message_table); However I am getting the connection failed error. The two databases are present in different host hosts (the hostname is different in connection properties). The table has 5 million records and is too cumbersome to export/import 回答1: The copy command is a SQL*Plus

String Aggregation in Oracle: Multiple Rows into Single Column

不问归期 提交于 2020-07-30 10:46:30
问题 hi I have following function for string aggregation in oracle CREATE OR REPLACE FUNCTION STRING_AGGREGATE(i_query VARCHAR2, i_seperator VARCHAR2 DEFAULT ',') RETURN VARCHAR2 AS l_return CLOB:=''; l_temp VARCHAR(32000); TYPE r_cursor is REF CURSOR; rc r_cursor; BEGIN OPEN rc FOR i_query; LOOP FETCH rc INTO L_TEMP; EXIT WHEN RC%NOTFOUND; l_return:=l_return||L_TEMP||i_seperator; END LOOP; RETURN RTRIM(l_return,i_seperator); END; when i call this function it show like this SELECT STRING_AGGREGATE

Create table in Oracle with auto-increment field using Sqlalchemy

对着背影说爱祢 提交于 2020-07-23 17:38:08
问题 I am creating a table in my Oracle DB using python and sqlalchemy. I would like to have an auto-increment ID column as primary key. How can I modify the following code to add the autoload option or anything like that ? engine = creat_engine("oracle:// ....") Base = declarative_base() class MyTable(Base): __tablename__ = 'MyTable' ID = Column(Integer, Sequence('my_id_seq'), primary_key=True) SomeColumn = Column(VARCHAR(50)) Base.metadata.create_all(engine) p.s. I don't want to create a

Create table in Oracle with auto-increment field using Sqlalchemy

旧时模样 提交于 2020-07-23 17:35:51
问题 I am creating a table in my Oracle DB using python and sqlalchemy. I would like to have an auto-increment ID column as primary key. How can I modify the following code to add the autoload option or anything like that ? engine = creat_engine("oracle:// ....") Base = declarative_base() class MyTable(Base): __tablename__ = 'MyTable' ID = Column(Integer, Sequence('my_id_seq'), primary_key=True) SomeColumn = Column(VARCHAR(50)) Base.metadata.create_all(engine) p.s. I don't want to create a

ORA-01795: maximum number of expressions in a list is 1000 error in perl script

倖福魔咒の 提交于 2020-07-22 05:42:25
问题 I'm trying to run a query with NOT IN clause like: SELECT * FROM table WHERE column NOT IN (?,?,...) (>1000 items) and I'm getting ORA-01795: maximum number of expressions in a list is 1000 error. In my script I'm doing something like: my $lparam = join ', ' => ('?') x @ids; $lquery = "SELECT * FROM table WHERE column NOT IN ($lparam)"; $lcsr = $zdb->prepare($lquery); $lcsr->execute( @ids ); I want to split the NOT IN clause to something like where (A not in (a,b,c) AND A not in (d,e,f)) ...

java.sql.SQLRecoverableException while fetching CLOB data using Hibernate + oracle 11g

♀尐吖头ヾ 提交于 2020-07-21 04:15:45
问题 I am getting "java.sql.SQLRecoverableException: Closed Connection", exception while fetching CLOB data from Oracle 11g using Hibernate in java web application. For DB connectivity I have implemented Tomcat 7 dataource. Below is my source where I am getting an Exception : java.sql.Clob reqClob= userBean.getRequestData(); Reader clbReader = reqClob.getCharacterStream(); In above Code while executing "clob.getCharacterStream()", I am getting below Exception : java.sql.SQLRecoverableException:

Supported JDBC, JDK versions for Oracle 11g

时光怂恿深爱的人放手 提交于 2020-07-20 07:24:26
问题 We are upgrading our DB from oracle 10g to 11g. I hope our current JDK1.6 will support this. What will be ideal JDBC versions for Oracle 11g ? Currently we are using ojdbc.14.jar , will it support for 11g ? Please confirm me 回答1: According to Oracle FAQ, you should use OJDBC7.jar for java version 8 回答2: Are you using Java inside the database? Or are you using Java to execute commands on the database? If the former, see the product sheet for the Oracle version you're moving to. If the latter,

How to do LEFT JOIN with double condition in Oracle syntax?

前提是你 提交于 2020-07-20 03:57:45
问题 I have 2 tables. 1) car table: 2) param table: I need to fetch duplicate cars have owner params match and do NOT differ in insurance (that's it must be either the same or is absent for both ). I'm successfully executing my query with LEFT JOIN in ANSI-syntax: SELECT owner.name, owner.value, COALESCE (insur.name, 'insurance'), insur.value, count(*) FROM car INNER JOIN param owner ON car.id = owner.car_id LEFT JOIN param insur ON car.id = insur.car_id AND insur.name = 'insur' WHERE owner.name =

How to increase buffer size in Oracle SQL Developer to view all records?

可紊 提交于 2020-07-17 03:18:09
问题 How to increase buffer size in Oracle SQL Developer to view all records (there seems to be a certain limit set at default)? Any screen shots and/or tips will be very helpful. 回答1: https://forums.oracle.com/forums/thread.jspa?threadID=447344 The pertinent section reads: There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway. If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to