oracle11g

Oracle 11g Backward compatibility with older oracle releases

不羁岁月 提交于 2019-12-05 17:05:21
Our organization is planning to upgrade its most of the oracle servers & clients to 11g Release 2. But one of our client system is still using oracle 8i installation. Can we able to access the objects of Oracle 8i from oracle 11g client? Some blogs says that it should work and other say it won't. Can anybody faced any issue with such configuration. One of the senior dba told us that oracle only supports backward compatibility of 2 versions earlier to current version. Assuming this fact we shouldn't been able to access database objects running on oracle version 8. Kindly help. Thanks in advance

Oracle database: how to select all but return certain columns first?

好久不见. 提交于 2019-12-05 16:46:52
Background I have an oracle database table with a lot of columns that I'm running some queries on. I don't know exactly what data I'm looking for in my query, so I want to return all columns, but I don't want to hunt and peck for columns I know are meaningful. Question Supposing a table (Table 1) with Column A, Column B, Column C....Column Z -- Is there a way to essentially say "Select Column C, Column J, Column F, Column Q, and then the rest of the columns From Table 1" ? Things I've Tried Keeping with pseudo-sql, Running: Select Column C, Column J, Column F, Table1.* from Table1 Doesn't help

When does an Oracle Package Specification become INVALID

血红的双手。 提交于 2019-12-05 16:24:46
As far as I know a package body can be replaced and recompiled without affecting the specification. A package specification declares procedures and functions, not defines them, so they can not reference objects, that can make the package specification INVALID. I know that a package specification can reference objects when it uses stand-alone subprograms and other packages to define it's variables. In this case changing referenced objects may cause the specification invalidation. Is there any other way how an Oracle package specification can depend on (reference) objects and become INVALID

Error casting T4CConnection to OracleConnection

爱⌒轻易说出口 提交于 2019-12-05 16:07:30
Spring application using JNDI lookup to get datasource as following: @Bean(name = "dataSource1", destroyMethod = StringUtils.EMPTY) public DataSource dataSource() { final JndiDataSourceLookup lookup = new JndiDataSourceLookup(); lookup.setResourceRef(true); return lookup.getDataSource(this.environment.getProperty(Constants.DB_JNDI_NAME_ES)); } and getting a connection from the datasource as follows : @Autowired @Qualifier("dataSource1") private DataSource ds; Connection conn = null; conn = this.ds.getConnection(); But when i pass that connection to StructDescriptor it throws classCastException

How to handle the loss of precision on JDBC numeric types due to grouping functions

最后都变了- 提交于 2019-12-05 16:05:50
Oracle (and some other DB's) have a datatype NUMBER, with which one can optionally set the precision and scale. Suppose the below query: SELECT agent_code, AVG (opening_amt) FROM customer GROUP BY agent_code; If both fields in above query were defined as NUMBER(12,0), the result in JDBC is indeed that for agent_code, but on "AVG(opening_amt)" both precision and scale return 0 (via java.sql.ResultSetMetaData.getPrecision(col) and java.sql.ResultSetMetaData.getScale(col) . That's basically the same as NUMBER, without any precision or scale specification, and according to oracle, would equal

what is the reason for core dump? stack shows from oracle lib

女生的网名这么多〃 提交于 2019-12-05 16:00:52
I have a coredmp where all thread stack look normal but one stack shows like this. Can any one tell me possible reason for this? i can see exit is being called from oracle libs, is this issue of oracle? Can any one guide me when this can happen? Thread 3 (process 26454): #0 0x00002b803ceb54a8 in exit () from /lib64/libc.so.6 #1 0x00002b803bbe93f5 in skgdbgcra () from /home/oracle/product/11g/lib/libclntsh.so.11.1 #2 0x00002b803be9cdec in kpeDbgCrash () from /home/oracle/product/11g/lib/libclntsh.so.11.1 #3 0x00002b803be9c627 in kpeDbgSignalHandler () from /home/oracle/product/11g/lib/libclntsh

ODP.NET error Unable to find the Requested .Net Framework Data Provider

跟風遠走 提交于 2019-12-05 15:36:17
问题 I am trying to develop an ASP.NET MVC 4.0 application using Oracle 11g Express and the .NET 4.0 framework. I can connect to the DB using the ODP.NET provider and can also generate my EDMX against the database. What I can't do is query the underlying DB using entity framework. When instantiating my DbContext using the connectionString Visual Studio generated, I get the following error: Unable to find the requested .Net Framework Data Provider. It may not be installed However, it is installed

How to use oracle client 11.2 with php (xampp) on win7 x64

两盒软妹~` 提交于 2019-12-05 15:33:56
I just installed an acutal XAMPP on my win7 (x64) PC to write some PHP scripts to connect to an oracle DB. I also have a normal oracle 11.2.0 client installed (PATH and ORACLE_HOME are set correctly). The client is used for all my other work without any problems. When I try to connect to an oracle DB PHP fails with Fatal error: Call to undefined function oci_connect() in . I remember I had to enable the "oci8-extensions" in my php.ini when I did the same thing some years ago on a x32 winXP PC. But my current xampp does not have these dll in the php/ext folder (only a php_oci8_12c.dll which

Deferred Segment Creation feature not enabled (ORA-00439)

≡放荡痞女 提交于 2019-12-05 14:25:28
I have .sql script file with DDL for more than 60 tables. I am trying to copy-paste the script into SQL Developer, connected to a database which is "Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production". Sample DDL Script: CREATE TABLE UserName."Table_Name" ( "Col1" NUMBER(*,0), "Col2" VARCHAR2(50 BYTE), "Col3" VARCHAR2(50 BYTE) ) SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING TABLESPACE "USERS" ; Error report - SQL Error: ORA-00439: feature not enabled: Deferred Segment Creation 00439. 00000 - "feature not enabled: %s" *Cause:

Can a table variable be used in a select statement where clause?

别来无恙 提交于 2019-12-05 14:17:01
I have a stored procedure that is doing a two-step query. The first step is to gather a list of VARCHAR2 type characters from a table and collect them into a table variable, defined like this: TYPE t_cids IS TABLE OF VARCHAR2(50) INDEX BY PLS_INTEGER; v_cids t_cids; So basically I have: SELECT item BULK COLLECT INTO v_cids FROM table_one; This works fine up until the next bit. Now I want to use that collection in the where clause of another query within the same procedure, like so: SELECT * FROM table_two WHERE cid IN v_cids; Is there a way to do this? I am able to select an individual element