Invalid argument value when import Oracle 10g .dmp file into Oracle 12c - oracle10g

When I try to import .dmp file which export from Oracle 10g R2 into Oracle 12c. Error happens as below
impdp username/password directory=dmptemp logfile=dmplog.log dumpfile=Example.dmp
Error ORA-39001, ORA-39000 and ORA-39088 happens.
Please help me to solve this problem.
Thanks

You are missing an = sign:
directory dmptemp
should be:
directory=dmptemp

Related

Unable to conect oci8 driver with oracle 19c database with php 8.1

I'm trying to connect to oracle 19c database with 12c client with php version 8.1.getting below error.
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: oci8/oci8_driver.php
Line Number: 160
Is there anything Ineed to install.I'm using 12c client(administrator)

While i am executing the DB2 Java class and i am getting db2 error

While i am executing the DB2 Java class and i am getting the below error.
com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-4742,
SQLSTATE=560D5, SQLERRMC=6, DRIVER=4.24.92
Thanks,
Rasheed SK
Have you followed the instructions and suggestions in the documentation?
Specifically for the -4742 sqlcode.
your table is not added idaa check your table from idaa db

Oracle 12c IMPDP errors

The import command...
impdp user/password DIRECTORY=desktop_import DUMPFILE=SENIORS4_Feb1.dmp TABLES=(DOCUMENT_PUBLISH, MEDIA_APPLICANT) REMAP_TABLESPACE=SENIORDB:import_user REMAP_SCHEMA=SENIORDB:import_user
...causes these errors:
Connected to: Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
ORA-39002: invalid operation
ORA-39166: Object IMPORT_USER.MEDIA_APPLICANT was not found or could not be exported or imported.
ORA-39166: Object IMPORT_USER.DOCUMENT_PUBLISH was not found or could not be exported or imported.
When I searched the web, most of these errors were associated with problems creating log files.
Try to precede table names with their owner name, i.e.
TABLES=(SENIORDB.DOCUMENT_PUBLISH, SENIORDB.MEDIA_APPLICANT)
or even by enclosing both of them into double quotes, such as
TABLES=("SENIORDB"."DOCUMENT_PUBLISH", "SENIORDB"."MEDIA_APPLICANT")

Hibernate fail to register REF_CURSOR parameter

I am new to Hibernate. Using the 5.2.10 FINAL version connecting to Oracle 11g using the Oracle10gDialect with JPA 2.1 and ojdbc8.jar
I try to access a simple stored procedure taking a String input parameter and output a Oracle SYS_REFCURSOR.
StoredProcedureQuery call = session.createStoredProcedureCall("sp_get_profile");
call.registerStoredProcedureParameter(1, String.class, ParameterMode.IN);
call.registerStoredProcedureParameter(2, Class.class, ParameterMode.REF_CURSOR);
call.execute();
An exception occur when I access the function
ERROR SqlExceptionHelper Invalid column type: 2012
DatabaseException::error=[Error registering REF_CURSOR parameter [2]]
I try to write a simple program connecting to DB with the Oracle Driver only. I will have the same error if I register Types.REF_CUSOR as the output parameter to CallableStatement.
cs.registerOutParameter(2, Types.REF_CURSOR);
And the problem can be solved by changing to OracleTypes
cs.registerOutParameter(2, OracleTypes.CURSOR);
Anyone know what is wrong? I need to fall back to use the traditional SQL programming if I cannot get the stored procedure access success. . . please help.
Finally got it work, I should check the Oracle JDBC document first before implementation.
ojdbc8 should be good for Oracle 12c + JDK8 + JPA2.1 with Oracle12cDialect.
For Oracle 11g, need to use ojdbc6.jar
I solved that issue by debugging OJDBC and Hibernate, the building from sources a patched Hibernate CORE library (5.4.15-Final).
I have patched the method ExtractedDatabaseMetaDataImpl.supportsRefCursors which returns always false.

How to use SQLite ODBC Driver with UTF-8 encoding?

I downloaded and installed the SQLite ODBC Driver from http://ch-werner.de/sqliteodbc/.
I had three new ODBC Drivers in my List
SQLite (UTF-8) Driver
SQLite ODBC Driver
SQLite3 ODBC Driver
Using the SQLite3 ODBC Driver works just fine. But not with UTF-8.
The SQLite ODBC (UTF-8) Driver which I assumed to work in this case just gives me the error message
Fehler beim Herstellen der Verbindung zur Datenquelle test
IM002 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Fehler beim Herstellen der Verbindung zur Datenquelle: test
English translation:
Error connecting to data source test
IM002 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Error connecting to data source test
What am I doing wrong?
Christian Werner, the provider of the SQLite Driver helped me via E-Mail.
It turned out that in the settings of the SQLite3 ODBC Driver the OEMCP Translation has to be turned on (By clicking Configure... of the specific User DSN in the ODBC Data Source Administrator)
Now all characters are shown as expected.
In connection string, this translates to OEMCPTranslation parameter:
connStr="DRIVER={{SQLite3 ODBC Driver}};Database=<path>;OEMCPTranslation=1";
Today in my case {...} worked, but not {{..}} when coppying tables from the Access database to the SQLite database using VBA:
DoCmd.TransferDatabase acExport, "ODBC Database", _
"ODBC;DRIVER={SQLite3 ODBC Driver};Database=<path>;OEMCPTranslation=1;", _
acTable, <source table>, <destination table>