Error in converting batch to exe using IExpress - batch-file

I am Converting my batch file to .exe file i have added .sql file and jpg file
i have successfully created package but when i am run this package i am getting an error like this
C:\Users\DEVELO~1\AppData\Local\Temp\IXP001.TMP>set /p dbnm=ENTER THE DATABASE SERVICE NAME
ENTER THE DATABASE SERVICE NAME UAT
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Dec 20 15:16:01 2018
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SP2-0310: unable to open file "C:\Users\DEVELO~1\AppData\Local\Temp\IXP001.TMP\\harsh.sql"
SQL> SP2-0734: unknown command beginning "ECHO is on..." - rest of line ignored.
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Press any key to continue . . .
my batch file path is D:\harsh
need help any answer?

Related

RMAN-06004: Oracle error from recovery catalog database: RMAN-20299: DBMS_RCVMAN package not compatible with the recovery catalog

I found archivelog backup is failing with the below errors.
RMAN> 2> 3> 4> 5>
Starting backup at 01-NOV-22
current log archived
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 11/01/2022 23:59:35
RMAN-03014: implicit resync of recovery catalog failed
RMAN-06004: Oracle error from recovery catalog database: RMAN-20299: DBMS_RCVMAN package not compatible with the recovery catalog
As per "RMAN-20299: DBMS_RCVMAN package not compatible with the recovery catalog"
I tried to upgrade the catalog in RMAN prompt and I got the below errors.
[oracle#by1212 scripts]$ rman target / catalog /#****
Recovery Manager: Release 19.0.0.0.0 - Production on Wed Nov 2 00:31:48 2022
Version 19.7.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: NKERMITT (DBID=112162833)
connected to recovery catalog database
PL/SQL package RMAN12P.DBMS_RCVCAT version 19.03.00.00. in RCVCAT database is not current
PL/SQL package RMAN12P.DBMS_RCVMAN version 19.03.00.00 in RCVCAT database is not current
RMAN> UPGRADE CATALOG;
recovery catalog owner is RMAN12P
enter UPGRADE CATALOG command again to confirm catalog upgrade
RMAN> UPGRADE CATALOG;
error creating upgcat_49
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06004: Oracle error from recovery catalog database: ORA-02299: cannot validate (RMAN12P.AL_U1) - duplicate keys found
Please help me to solve this issue.
Oracle -- 19.0.0.0.0
OS -- Red Hat Enterprise Linux Server release 7.9 (Maipo)
This is standalone DB.
This is prod DB.
Regards,
Balaji

How to change default Oracle 11g to 19c in cli Windows 10?

How to change default Oracle 11g to 19c in cli Windows 10?
I have 2 Oracle db releases on my Windows 10: 11g & 19c.
When I enter cmd line (or any shell), type sqlplus I am by defalut connected to 11g release.
I would like to change default db in cmd to 19c. How can I do that?
We will follow the PATH variable in the absence of anything else, eg
c:\>set PATH=C:\oracle\product\19\bin;%PATH%
c:\>sqlplus /nolog
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Feb 16 18:32:44 2021
Version 19.8.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
c:\>set PATH=C:\oracle\product\18\bin;%PATH%
c:\>sqlplus /nolog
SQL*Plus: Release 18.0.0.0.0 - Production on Tue Feb 16 18:33:08 2021
Version 18.6.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Then set your ORACLE_SID or connect via a service as already mentioned
Usually we use TNSNAMES.ORA file which contains "aliases" to databases we access. Then, while connecting to a desired database, we specify its alias:
sqlplus scott/tiger#ora11g
or
sqlplus mike/lion#ora19c
Although you may have access to only 2 databases, my TNSNAMES.ORA contains entries for 55 of them. What I'm trying to say is that you may consider "one" database "default", but as the time goes by, that "default" will either change or will be mostly useless as you'll connect to different databases on a daily bases. Therefore, check your TNSNAMES.ORA, specify its alias along with username/password and ... that's it.

Oracle 12c Database Configuration Assistant: Error

Had this error while installing Oracle DB 12.1.0.2 Enterprise (64-bit) on a VM with Windows Server 2016 (64 bit OS) with all the Hard/Software requirements. The installer file was unzipped in the same parent folder but I changed the folder name to: Oracle Database 12c Release 1 64 Enterprise (12.1.0.2.0).
Error while executing
"C:/app/oracle/product/12.1.0/dbhome_1/rdbms/admin/dbmssml.sql". Refer to
"C:/app/oracle/cfgtoollogs/dbca/orcl/dbmssml0.log" for more details. Error in
Process: C:/app/oracle/product/12.1.0/dbhome_1/perl/bin/perl.exe
The dbmssml0.log file is empty. Then the installer threw a:
[INS-20802] Oracle Database Configuration Assistant failed.
Cause - The plug-in failed in its perform method
Action - Refer to the logs or contact Oracle Support Services.
Log File Location
C:\Program Files\Oracle\Inventory\logs\installActions2020-08-03_03-57-18PM.log
Here is the installation log.
I'm a new Oracle user and I'm not sure how to read the log or locate the error, please let me know if need any additional details. Thanks in advance.
Regards,
Heber
Oracle 12.1 is not certified on Windows 2016, per the Database Installation Guide. But Oracle 12.2 is supported on Windows 2016.
There's a big difference between 12.1 and 12.2. Make sure you're always looking at the right version of the documentation.

Oracle expdp compatibility issue

I have an Enterprise Oracle Database 12.2.0.1.0 installed. The output of 'show compatible' is 12.2.0.1.4.
When I try to run EXPDP with the correct credentials, I get the following error:
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
ORA-39001: invalid argument value
ORA-39021: Database compatibility version 12.2.0.1.4 is not supported.
After which EXPDP exists.
Should EXPDP's version be aligned with the 'compatible' parameter?

Exporting Oracle 11G R2 dump file

I am new to oracle and need to start a project. For this I need to restore a dump file. I tried all the methods, but not getting success. Dump file is from Oracle 11 G R2 and same version is installed on my desktop Windows PC. Steps followed are as below:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\kartikeyap>SQLplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 8 23:38:58 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: SYSTEM
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create tablespace csiprod datafile 'csiprod' size 3000M
2 ;
Tablespace created.
SQL> create user csitest identified by csitest default tablespace csiprod temporary tablespace temp;
User created.
SQL> grant all privileges to csitest;
Grant succeeded.
SQL> create or replace directory c_drive as 'C:/';
Directory created.
SQL> grant read,write on directory c_drive to csitest;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Users\kartikeyap>cd\
C:\>impdp SYSTEM/diya2478 schemas=csitest directory=c_drive dumpfile=csiprod.dmp;
But every time I am getting error below:
Import: Release 11.2.0.1.0 - Production on Thu Sep 8 23:44:50 2016
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "C:/csiprod.dmp;" for read
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
It will be of great help if someone take a look and get this resolved for me.

Resources