Export from Oracle 10g database with 11g client - oracle

Database Version : 10g Enterprise Edition Release 10.2.0.4.0
Client Version: 11g Enterprise Edition Release 11.2.0.1.0 (windows 7 64bit)
When I try to export (exp) a table from database:
exp usr/pass#remote_db file=f.dmp tables=table
I get the following error:
EXP-00008: ORACLE error 904 encountered
ORA-00904: "POLTYP": invalid identifier
EXP-00000: Export terminated unsuccessfully
I searched about it on the net and I understand that the problem is version incompatibility.
What do you advice me to do about it?
NOTE: I also tried to export with data pump but it gives:
UDE-00018: Data Pump client is incompatible with database version 10.2.0.4.0

Generally speaking, Oracle export is not backward compatible with prior releases. You'll need to use the 10g export on the 10g database. Get the 10g client and install it with the database utilities option to get the exp/imp tools. On the flip side, Oracle imp is generally backward compatible with prior releases of exp.

I use VERSION=10.2 from a 11g client

Related

Oracle upgrade from 12c to 19c - older application no longer works

Using an older SQL reporting tool that used oci.dll to interact with Oracle 12c. Upgrade to Oracle 19c and the tool no longer works. Is the instant client for 19c the solution or must we revert to ODBC for access?
Thanks for any insights...

Web Console and SQL Plus not syncing in Oracle XE 10g

I have Oracle XE 10g installed in my Windows 10 OS. I am able to connect both Web Console and SQL Plus command line to the database. The issue is operations done in SQL Plus command line are not reflecting in Web UI. But whatever doing in Web UI is reflecting in SQL Plus command line. I am using the default SYSTEM user. Why this issue coming?
SQL Plus version - SQL*Plus: Release 10.2.0.1.0
Oracle version - Oracle Database 10g Express Edition Release 10.2.0.1.0
Thanks in Advance

Which Oracle 11g has DBCA?

I am having an issue with Oracle 11g. I need to download an Oracle 11g database that has the Database Configuration Assistant. I had already downloaded Oracle 11g Express Edition not realizing it apparently doesn't have DBCA.
So which Oracle 11g do I need to download so I can use DBCA?
I am on the Oracle website and see Oracle 11g Release 2. I have a Windows laptop with Windows 10.
That would be any other version (Standard or Enterprise).
11gXE has its limitations and creates a sample database during the installation process. As it allows only one instance, DBCA is useless in that version and is, therefore, not shipped with it.
Standard or Enterprise edition of Oracle 11g would do.
I have downloaded the version from Oracle and DBCA worked for me.

Oracle SqlError: Protocol Violation / OALL8 is in an inconsistant state

I'm getting Protocol Violation and OALL8 is an inconsistant state exceptions trying to execute SELECT queries, but only on SOME of my tables. I first noticed this in a test application that I wrote that did a SELECT * FROM SOMETABLE. It would get through several hundred records and then just lock up on me. I tried running the same query in Oracle' SQLDeveloper, and would get the Protocol Violation exception on some tables. Eventually it gets to a point where it indicates "OALL8 is in an inconsistant state" for any query.
Does anyone know why this is occurring and how to fix the problem? Where is my inconsistent state? Is Oracle's SqlDeveloper its own standalone client, or does it rely on ODAC or Instant Client (referenced in PATH envi var) to be present?
The only thing that changed recently was that I installed ODAC so that I could use odp.net to replace System.Data.OracleClient in .NET. IT was ODAC 11.2.0.3.0 with Oracle Developer Tools for Visual Studio, 32 bit. I since updated my PATH environmetn variable to point to my stand-alone instant client.
Instant Client - 11.2.0.2.0, running on Win XP SP3, 32-bit Oracle DB:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production, Running on Windows Server 2003, x64
ODAC: 11.2.0.3.0
SqlDeveloper was installed before I installed ODAC, but somehow SqlDeveloper seems to be going through ODAC as the client, despite ODAC not being referenced in the PATH environment variable.
Update: When I initially installed ODAC, all of my queries functioned normally. Then they stopped functioning after a day, and I can't explain why. I attempted to uninstall ODAC, which failed when looking for a .DLL to delete. I then manually deleted my ORACLE_HOME, and reinstalled ODAC, and it's working fine for now. I don't understand why this is the case.
SQL Developer uses the ORACLE_HOME and it's drivers when available. The issue you are seeing in this is that the ORACLE_HOME is not the same version as the JDBC Driver bundled in SQL Developer.
The 'fix' for this is to ensure the oracle client is up to date w/ the version of sqldev you have installed. The easiest way to find this is when connection run show jdbc
show jdbc
-- Database Info --
Database Product Name: Oracle
Database Product Version: Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production
Database Major Version: 12
Database Minor Version: 1
-- Driver Info --
Driver Name: Oracle JDBC driver
Driver Version: 12.2.0.1.0
Driver Major Version: 12
Driver Minor Version: 2

Determine Oracle Warehouse Builder version

Is there a way to check whether a server is running the 11g release 2 or 11g release 1 version of Oracle Warehouse Builder?
Also is it safe to assume that Release 11.1.0.7.0 in terms of the Oracle instance itself (as opposed to OWB) is an instance of 11g release 1?
select * from v$version;
returns
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
"Also is it safe to assume that Release 11.1.0.7.0 in terms of the Oracle instance itself (as opposed to OWB) is an instance of 11g release 1?"
Yes.
To get the version of OWB, try...
select release
from all_iv_installations;
(I can't test it as I haven't got OWB installed.)
Ref: http://download.oracle.com/docs/cd/E10926_01/doc/owb.101/b12146/d_pub.htm
Given that the OWB schema is installed with the database, it seems likely that that's the version of OWB you'll have, unless you think it's been upgraded seperately.
It seems it is possible to install OWB 11.2 into an 11.1 database:
"It is generally not necessary to download this standalone software unless you have any of the following needs:
- To install OWB 11.2 and host an OWB repository on Oracle Database 10 g Release 2 or Oracle Database 11 g Release 1. "
http://www.oracle.com/technetwork/developer-tools/warehouse/downloads/index.html
Log onto the owb server and the following query should help you:
select runtime_version from owbsys.wb_rt_service_nodes;
You either need to log in as owbsys or as someone who has the privileges to access this table.

Resources