Import terminated unsuccessfully - Oracle - oracle

I'm trying to import a dump file using imp command in oracle 10g. The following error message is displayed. Kindly assist
C:\Documents and Settings>imp 'rdata/rdata#nxtgen' file="D:\oracle\schema.dmp"
log=D:\oracle\schema.log full=y
Import: Release 10.2.0.1.0 - Production on Fri Jun 21 11:54:29 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
IMP-00058:
IMP-00000: Import terminated unsuccessfully
C:\Documents and Settings>

Related

Reg: sysdba not logging, system user and other user connecting

Sysdba not logging other users are logging below, how to
fix it, able to login to other users successfully, please find below, only with sysdba not working
[oracle#dztupbin]$ ./sqlplus SYSTEM/"oracle"
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:09 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Last Successful login time: Thu Apr 28 2022 11:05:00 +01:00
Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
[oracle#dztup bin]$ ./sqlplus SYSTEM/"oracle" as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:
sqlplus / as sysdba also giving same result:-
./sqlplus / as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied
[oracle#dztup bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:
I connected to sys user now:-
[oracle#dztup bin]$ ./sqlplus system/"oracle"
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 13:25:51 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Last Successful login time: Thu Apr 28 2022 13:25:15 +01:00
Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
SQL>
SQL>
SQL> show user
USER is "SYS"
granted sysdba privilige to system user now able to connect:
but still sqlplus / as sysdba not working.
[oracle#dztup bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
SYSDBA is a privilege, not a user. The SYSTEM account does not have SYSDBA privileges, by default. The only account with default SYSDBA privileges is SYS, which is usually authenticated locally by the operating system. e.g.:
sqlplus / as sysdba
If you have granted SYSDBA privileges to other users, then those users are authenticated against a separate password file when logging in with the SYSDBA role, and not the normal password hash. The password file is not updated automatically when the users' normal password is changed (as with ALTER USER x IDENTIFIED BY pass). To update the password in the password file you must re-grant SYSDBA privileges to the user; otherwise use the old password.

sqlcl can't perform liquibase update for a simple changelog

I'm really stuck on the simpliest example of liquibase migration taken from Oracle-Base. So I've created two files and put it into folder preset.
Contents of file controller.xml:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">
<changeSet author="tim" id="01_tab1_seq">
<sqlFile dbms="oracle"
endDelimiter=";"
path="test.sql"
splitStatements="true"
relativeToChangelogFile="true"
stripComments="false"/>
</changeSet>
</databaseChangeLog>
Contents of file test.sql:
create or replace view asdas
as
select 1 val from dual
/
I open Windows Terminal Preview at this folder and try to perform a migration:
PS C:\Users\%USERNAME%\Desktop\preset> sql testuser/testuser#dev-db1
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
SQLcl: Release 21.1 Production on Tue Jul 20 18:25:55 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Tue Jul 20 2021 18:25:57 +03:00
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.7.0.0.0
SQL> lb update -changelog controller.xml
Processing has failed for your request.
liquibase.exception.UnexpectedLiquibaseException: java.io.IOException: The file test.sql was not found in
- C:\Oracle\jdbc\lib\ojdbc8.jar
- C:\Oracle\jlib\orai18n-mapping.jar
- C:\Oracle\jlib\orai18n-utility.jar
- C:\Oracle\jlib\orai18n.jar
- C:\Oracle\lib\ojdbc8.jar
- C:\Oracle\modules\oracle.xdk\xmlparserv2.jar
- C:\Oracle\modules\org.glassfish.javax.json.jar
- C:\Oracle\rdbms\jlib\xdb6.jar
- C:\Oracle\sqlcl\lib
- C:\Oracle\sqlcl\lib\ST4.jar
- C:\Oracle\sqlcl\lib\antlr-runtime.jar
- C:\Oracle\sqlcl\lib\commons-codec.jar
- C:\Oracle\sqlcl\lib\commons-logging.jar
- C:\Oracle\sqlcl\lib\dbtools-common.jar
- C:\Oracle\sqlcl\lib\dbtools-data.jar
- C:\Oracle\sqlcl\lib\dbtools-http.jar
- C:\Oracle\sqlcl\lib\dbtools-net.jar
- C:\Oracle\sqlcl\lib\dbtools-sqlcl.jar
- C:\Oracle\sqlcl\lib\ext
- C:\Oracle\sqlcl\lib\ext\dbtools-liquibase.jar
- C:\Oracle\sqlcl\lib\ext\dbtools-modeler-cli-ext.jar
- C:\Oracle\sqlcl\lib\ext\dbtools-modeler-common.jar
- C:\Oracle\sqlcl\lib\ext\liquibase-core.jar
- C:\Oracle\sqlcl\lib\ext\snakeyaml-1.12.jar
- C:\Oracle\sqlcl\lib\guava.jar
- C:\Oracle\sqlcl\lib\httpclient5.jar
- C:\Oracle\sqlcl\lib\httpcore5.jar
- C:\Oracle\sqlcl\lib\httpmime.jar
- C:\Oracle\sqlcl\lib\jackson-annotations.jar
- C:\Oracle\sqlcl\lib\jackson-core.jar
- C:\Oracle\sqlcl\lib\jackson-jr-objects.jar
- C:\Oracle\sqlcl\lib\jackson-jr-stree.jar
- C:\Oracle\sqlcl\lib\jansi.jar
- C:\Oracle\sqlcl\lib\javax.json.jar
- C:\Oracle\sqlcl\lib\jdbcrest.jar
- C:\Oracle\sqlcl\lib\jline.jar
- C:\Oracle\sqlcl\lib\ojdbc8.jar
- C:\Oracle\sqlcl\lib\oraclepki.jar
- C:\Oracle\sqlcl\lib\orai18n-collation.jar
- C:\Oracle\sqlcl\lib\orai18n-mapping.jar
- C:\Oracle\sqlcl\lib\orai18n-servlet.jar
- C:\Oracle\sqlcl\lib\orai18n-utility.jar
- C:\Oracle\sqlcl\lib\orai18n.jar
- C:\Oracle\sqlcl\lib\orajsoda.jar
- C:\Oracle\sqlcl\lib\osdt_cert.jar
- C:\Oracle\sqlcl\lib\osdt_core.jar
- C:\Oracle\sqlcl\lib\slf4j-api.jar
- C:\Oracle\sqlcl\lib\slf4j-jdk14.jar
- C:\Oracle\sqlcl\lib\sshd-common.jar
- C:\Oracle\sqlcl\lib\sshd-contrib.jar
- C:\Oracle\sqlcl\lib\sshd-core.jar
- C:\Oracle\sqlcl\lib\xdb6.jar
- C:\Oracle\sqlcl\lib\xmlparserv2-sans-jaxp-services.jar
- C:\Oracle\sqlcl\lib\xmlparserv2.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\access-bridge-64.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\cldrdata.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\dnsns.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\jaccess.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\jfxrt.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\localedata.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\nashorn.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunec.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunjce_provider.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunmscapi.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunpkcs11.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\zipfs.jar
- C:\Users\%USERNAME%\Desktop\preset\ST4-4.3.1.jar
- C:\Users\%USERNAME%\Desktop\preset\antlr-runtime-3.5.2.jar
- C:\Users\%USERNAME%\Desktop\preset\commons-codec-1.15.jar
- C:\Users\%USERNAME%\Desktop\preset\commons-logging-1.2.0.0.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-common-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-data-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-http-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-net-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-sqlcl-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\guava-30.1-jre.jar
- C:\Users\%USERNAME%\Desktop\preset\httpclient5-5.0.3.jar
- C:\Users\%USERNAME%\Desktop\preset\httpcore5-5.0.3.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-annotations-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-core-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-jr-objects-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-jr-stree-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jansi-1.18.jar
- C:\Users\%USERNAME%\Desktop\preset\javax.activation-api-1.2.0.jar
- C:\Users\%USERNAME%\Desktop\preset\javax.json-1.1.4.jar
- C:\Users\%USERNAME%\Desktop\preset\jaxb-api-2.4.0-b180830.0359.jar
- C:\Users\%USERNAME%\Desktop\preset\jdbcrest-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jline-2.14.6.jar
- C:\Users\%USERNAME%\Desktop\preset\low-level-api-13.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\ojdbc8-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\oraclepki-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orai18n-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orai18n-mapping-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orai18n-utility-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orajsoda-1.1.6.jar
- C:\Users\%USERNAME%\Desktop\preset\osdt_cert-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\osdt_core-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\slf4j-api-1.7.30.jar
- C:\Users\%USERNAME%\Desktop\preset\slf4j-jdk14-1.7.30.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-common-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-contrib-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-core-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-scp-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-sftp-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\ucp-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\xdb6-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\xmlparserv2-sans-jaxp-services-21.0.0.jar
- C:\jdbc\lib\ojdbc8.jar
- C:\jlib\orai18n-mapping.jar
- C:\jlib\orai18n-utility.jar
- C:\jlib\orai18n.jar
- C:\rdbms\jlib\xdb6.jar
Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add '/' to the classpath parameter.
Even though I'm running sqlcl from the same directory I get the error above. One can see that directory C:\Users\%USERNAME%\Desktop\preset\ is not on the list. Instead there is a bunch of jar files that don't persist in this directory.
My OS version is Windows 10. Here's versions of tools I use:
PS C:\Users\%USERNAME%\Desktop\preset> sql testuser/testuser#dev-db1
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
SQLcl: Release 21.1 Production on Tue Jul 20 18:35:55 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Tue Jul 20 2021 18:35:57 +03:00
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.7.0.0.0
SQL> lb version
Liquibase version: 4.3.1
Extension Version: 21.1.1.0
Any thoughts will be appreciated.
EDIT:
I've tried to run it using Windows 10 Linux Subsystem and it worked:
roman#UBUNTU-LT:/mnt/c/Users/%USERNAME%/Desktop/preset$ sql testuser/testuser#dev-db1
SQLcl: Release 21.1 Production on Thu Jul 22 16:54:14 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Thu Jul 22 2021 16:54:18 +03:00
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.7.0.0.0
SQL> lb update -changelog controller.xml
######## ERROR SUMMARY ##################
Errors encountered:0
SQL>
Looks like there's something with running it under Windows environment.

During RMAN backup, shutdown immediate database and facing error ORA-12514: TNS:listener?

I was taking an RMAN backup.
RMAN> SHUTDOWN IMMEDIATE;
After Shutdown Immediate i am not able to startup database.
I have tried
conn sys#databasename as sysdba
RMAN target sys#database
lsnrctl stop start status
But i am getting this error.
C:\Users\Umair>rman target sys#ora_prep
Recovery Manager: Release 12.1.0.2.0 - Production on Mon Jul 13 00:18:00 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
target database Password:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Advice, please.Thank you.
Oracle 12.1.0
Windows 10
Static listener registration:
https://docs.oracle.com/en/database/oracle/oracle-database/18/spmss/adding-static-service-to-listener.html
https://support.oracle.com/knowledge/Oracle%20Database%20Products/2312510_1.html

Connect Oracle Server 12c from Windows Client SQLplus 11c

i have an oracle server 12c and would like to connect from an windows machine with sqlplus.
Server-Version is 12.2.0.1
SQLPlus is 11.2.0.1
when i connect to the server like "sqlplus user/pass#ORCL" i got the error
ORA-01017: invalid username/password; logon denied
The credentials are correct. With SQLPlus 12.2 it works fine.
By checking support matrix it should be work also with 11.2.0
So here is my tnsnames.ora from the windowsclient
ORCL =
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=10.162.6.52)
(PORT=1521)
)
(CONNECT_DATA=
(SERVER = DEDICATED)
(SID=orcltok)
)
)
the PASSWORD_VERSION for the User is for 11g and 12c.
i have checked by from dba_users.
i hope someone have a tip for me.
Best wishes
Oliver
I was very interested in your task, I put an experiment on oracle XE 11g and instant client 11.
1. USER SCOTT password Tiger
2. USER Scott password TigeR
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe system/password#aws
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:05:00 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> alter user SCOTT identified by Tiger;
SQL> select * from all_users;
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
XS$NULL 2147483638 28-AUG-11
SCOTT 48 19-JAN-18
APEX_040000 47 28-AUG-11
APEX_PUBLIC_USER 45 28-AUG-11
FLOWS_FILES 44 28-AUG-11
HR 43 28-AUG-11
MDSYS 42 28-AUG-11
ANONYMOUS 35 28-AUG-11
XDB 34 28-AUG-11
CTXSYS 32 28-AUG-11
OUTLN 9 28-AUG-11
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
SYSTEM 5 28-AUG-11
SYS 0 28-AUG-11
13 rows selected.
SQL> create user "Scott" identified by TigeR ;
User created.
SQL> grant connect to "Scott";
Grant succeeded.
SQL> select * from all_users;
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
XS$NULL 2147483638 28-AUG-11
Scott 51 19-JAN-18
SCOTT 48 19-JAN-18
APEX_040000 47 28-AUG-11
APEX_PUBLIC_USER 45 28-AUG-11
FLOWS_FILES 44 28-AUG-11
HR 43 28-AUG-11
MDSYS 42 28-AUG-11
ANONYMOUS 35 28-AUG-11
XDB 34 28-AUG-11
CTXSYS 32 28-AUG-11
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
OUTLN 9 28-AUG-11
SYSTEM 5 28-AUG-11
SYS 0 28-AUG-11
14 rows selected.
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe "Scott"/Tiger#aws
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:10:31 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> show user
USER is "SCOTT"
SQL>
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe "Scott"/TigeR#aws
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:14:41 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:15:22 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect Scott/TigeR#aws
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> connect "Scott"/TigeR#aws
Connected.
SQL> show user
USER is "Scott"
SQL>
Example 2. sqlplus 12.2.0 instant client 12.2.0.1
C:\oracle\instantclient_12_2>sqlplus.exe Scott/Tiger#aws
SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 22 09:42:08 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
SQL> show user
USER is "SCOTT"
SQL>
C:\oracle\instantclient_12_2>sqlplus.exe "Scott"/"Tiger"#aws
SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 22 09:44:46 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
SQL> show user
USER is "SCOTT"
SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
C:\oracle\instantclient_12_2>sqlplus.exe /nolog
SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 22 09:45:48 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
SQL> conn Scott/TigeR#aws
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> conn "Scott"/TigeR#aws
Connected.
SQL> show user
USER is "Scott"
SQL>
If the user name contains letters in different registers, then sqlplus 11 and 12 translates the username to upper case always. If you run it like this
sqlpus "Scott"/TigeR#aws this is equivalent to sqlpus "SCOTT"/TigeR#aws.
If you first run the sqlplus /nolog command
and then connect "Scott"/TigeR#aws. That all connects.

protocol adapter Error in sql developer

C:\> lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 24-AUG-2016 14:19:47
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 61: Unknown error

Resources