ORA-01017 with database link
Hi all
I have a small problem, but I can't find the solution yet.
I created a DB1 databaselink: "create public database GO_TO_DB link
connect to TEMP identified by PW_TEMP
using DB2; »
On DB2 I have the TEMP user with password PW_TEMP thanks to subsidies for the TEST table.
In DB2, there is a table "TEST";
I'm logged into DB1 and do: SELECT * FROM TEST; I get: "ora-01017 name username/password invalid; connection refused
ORA-02063 previous line of GO_TO_DB'
messages.
I can connect to DB2 with the TEMP of the user and can select: no problem.
Also, I tried to connect with sqlplus and user TEMP on DB2: no problem.
Connect to DB1 in sqlplus and don't select it * test, I get ora messages too.
Do I did wrong or what I forgot?
Greetz, Cees
This error message means that you have provided the wrong username and password for the database that the DB connection is connected to.
If the password is case-sensitive, you must put quotation marks when you create the DB link.
The name of DB that you provided when you create the DB link could also be referring to a different database than the one you expect. You should check your tnsnames.ora file (or files) to verify this. You can also specify definitively the DB using the syntax ' host: port / SID "instead of a TNS name.
Tags: Database
Similar Questions
-
I have some difficulty with the provider to manage and I can't understand what is causing the problem.
Initially, the managed provider seems to be a drop in replacement for the unmanaged provider. However, when we moved the code to our test environments, the application started fail with an error 'connection refused '.
Our dev machines are 64 bit Win 7 and Win 2008 R2 our test machines. The DEV machines do not have problems connecting to the database with the same connection used in the test environment string. I can connect to the database using sql more with the connection string used in the application.
I'm at a loss on how to trouble shoot this.
Thank you.
Jon
I think I know what is happening here. It looks like the algorithm AES is used to encrypt the password when connecting to the database. The implementation of the AES in .NET is NOT FIPS compatible, which causes problems in the public sector (I noticed you were in the Government, as I am). The only way that I was able to work around this problem was put off from the application of the strategies of FIPS (http://msdn.microsoft.com/en-us/library/hh202806.aspx.) The joys of security...
-
Cannot connect through the ORA-01017 Invalid Username/Password database link
Hello
I have two virtual machines with Oracle 11 g 2 and one with Oracle 12 c installed on RHEL 6
I wanted to install a dblink between the 2, but after you have created the dblink I get error: ORA - 01017 Invalid username/password
Now, I know, the error is clear enough but when I try to connect using netmgr it works
So just to summarize, Oracle 12 c, I'm trying to connect to Oracle 11 g using a DBLINK but I get ORA-01017
Since Oracle 12 c, I created a new service so that I have the remote db alias in tnsname.ora and at the end of the process, when they ask for test connection, I can connect successfully to remote db
Then I created a dblink according to the following:
SQL > CREATE PUBLIC DBLINK LINK DATABASE to CONNECT to
"hr""" IDENTIFIED BY ' password ' with the HELP of 'REMOTEDB ';
If I then select * from employees@dblink, I get the error
What I've noticed, it is that in the 11g (the target machine) I can not connect with OS authentication, don't know if its related
If i: sqlplus / as sysdba I get ORA-01031 insufficient become
I have to connect to the Linux box as user 'oracle', who is a member of the groups oinstall dba
Am I missing something?
Thank you!
CHRI$ says:
SQL > CREATE PUBLIC DATABASE LINK DBLINK TO CONNECT TO
'hr' IDENTIFIED BY 'password' with the HELP of "REMOTEDB";
You will probably have to create the link without containing the user name and the word in double quotes.
-
Get ORA-28562 with link of database when select NULL via ODBC
Hello
This is my first post of the time issue in this community. Apologies if this isn't the right place to start and lease let me know where to post this instead.
I have a database link to connect via odbc to Ingres. Everything works as expected but when I try to select ODBC (HS), where the column is NULL, it returns the error:
Select * from mynull@ingres;
ORA-28562: heterogeneous Services data truncation error
ORA-02063: preceding line of INGRES
This is the track that counts:
hgoftch2, line 139: print hoada @ 0xe55288
MAX: 1, SIZE: 1, BRC:1, WHT = 5 (SELECT_LIST)
hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
VARCHAR Y 1 1 12 0 / 0 0 0 200 col1
SQLFetch: rank: 1, column 1, bflsz: 2, bflar:-1
SQLFetch: rank: 1, column 1, bflsz: 2, bflar: SQL_NULL_DATA
1 lines read
Here's the hsinit:
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = rd-cdsuat02
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_TRACE_LEVEL0 = 255
#HS_FDS_FETCH_ROWS = 1
HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so
HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1
#HS_KEEP_REMOTE_COLUMN_SIZE = REMOTE
#
# ODBC specific environment variables
#
Set ODBCINI=/opt/Ingres/IngresII/ingres/files/odbc.ini
The values in the table mynull on the side of Ingres is added as follows:
create table mynull (col1 char (1) with the null value);
insert into mynull values (NULL);
The idea is to use the database link to convert the Ingres on Oracle data. I have the tables all created and copied 90% of the data, but stuck with all the data that has NULL values in it. Can someone tell me what I did not right?
Thank you
HY
Hi Mike,.
Thanks for spending the time to answer my question. Just to let you know that I discovered that I need to add this in my hs init file:
HS_FDS_SQLLEN_INTERPRETATION = 32
This solved the problem I have. Now, I get NULL value correctly. Before closing the issue, here is the info you requested. Thanks again for the help.
1. you use DG4ODBC to connect to Ingres? If so, what is the version?
Yes, not sure about the version that is part of the Oracle 12 C.
2. What is the name and the version of the ODBC of Ingres driver that you use?The driver name is Ingres and version: 3.50.1010.0137
3. What is returned by - describe "mynull"@gtw_link ".
-do not put a semicolon at the end of the describe.
02:04:21 wswmvzwd [SYS] > describe mynull@ingres
Name Null? Type
----------------------------------------------------------------------------------------------------------- -------- ------------------------------------------------------------------------
col1 VARCHAR2(1)
4. what happens if you use NVL in the selection from Oracle?
Previously, it is fixed:
12:15:39 wswmvzwd [SYS] > select * from mynull@ingres;
ERROR:
ORA-28562: heterogeneous Services data truncation error
ORA-02063: preceding line of INGRES
no selected line
Elapsed time: 00:00:00.13
After it is fixed (added HS_FDS_SQLLEN_INTERPRETATION = 32):
12:17:03 wswmvzwd [SYS] > select nvl ("col1", 'NULL') of mynull@ingres;
NVL)
----
NULL VALUE
A
NULL VALUE
5. you have-
HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so-is the Ingres driver or a driver manager libiiodbcdriver.1.so?
Ingres driver
-If the pilot can you confirm it offers the features of driver as Manager?Yes, I was able to check it out since the Manager ODBC INgres for the test.
6. can you upload a track of comprehensive gateway somewhere so that see us? Use-
HS_FDS_TRACE_LEVEL = 255
for the trace.
Since it is resolved, I'll ignore it. Part of the debugging information is in the original post.
Thanks again Mike, really appreciated.
HY
-
ORA-01017: name of user and password invalid. connection refused - Database Link
Hi guys,.
Could you help me, I have a problem connecting to a different database using the database link:
* 1. I have added in the database 'customer' DEV2 tnsnanes.ora *.
DEV =
+ (DESCRIPTION = +
+ (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.100.85)(PORT = 1521)) +.
+ (CONNECT_DATA = +
+ (SID = DEVDB) +.
+)+
+)+
* 2. I tested my connection using tnsping *.
Oracle@dev > tnsping dev
AMT Ping utility for Linux: Version 10.2.0.1.0 - Production on July 10, 2010 14:35:35
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Use settings files:
+/opt/Oracle/product/10.2/Db_1/network/admin/SQLNET.ora+
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.100.85)(PORT = 1521)) (CONNECT_DATA = (SID = DEVDB)))
OK (0 msec)
Oracle@dev >
* 3. In SQLPLUS of DEV2 I connect to my database using the tnsnames entry *.
SQL > conn devuser/pwd001@dev
Connected.
* 4. I then create a database of link.*
SQL > Create Database Link dev_Link
+ 2 Connect devuser +.
+ 3 identified by pwd001 +.
+ 4 using "DEV"; +
Database link created.
SQL >
* 5. When I try to connect to the database using the database link, I get an error, but I'm sure that the password and user name are ok.*
SQL > select * from global_name@dev_link;
Select * from global_name@dev_link
*+
ERROR on line 1:
ORA-01017: name of user and password invalid. connection refused
ORA-02063: preceding the line of DEV_LINK
SQL >
What could be wrong...?Try to connect to the database via SQLPlus target using the tnsnames.ora entry: sqlplus bob@remote.
If the target db is 11g, then breaking the password may be the matter. Try placiing the password in quotes when you create the database link.
HTH - Mark D Powell.
-
ORA-01017: name of user and password invalid. logon denied in the database of 12 c
Hello
I have created the new user in PDB 12 c and granted \n(Assurez-vous also,
but I coudnt able to connect to this user.
Please suggest me.
The steps that I did.
SQL > alter session set container = TESTPDB1;
Modified session.
SQL > create user test1 identified by welcome;
Created by the user.
SQL > grant connect, resources to test1;
Grant succeeded.
SQL > validation
2;
Validation complete.
SQL > conn test1/welcome.
ERROR:
ORA-01017: name of user and password invalid. connection refused
WARNING: You are more connected to ORACLE.
Concerning
Kumar V
Dear all,
The problem has been solved now.
12 c database, we could not able to connect the local user database of snap-in.
You need to connect users as below,
[oracle@dg admin] $ sqlplus sys/welcome@PDBDEV as sysdba
SQL * more: Production of the 12.1.0.2.0 version Thu Apr 16 12:56:38 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production
With the options of partitioning, OLAP, advanced analytics and Real Application Testing
SQL > show con_name;
CON_NAME
------------------------------
PDBDEV
SQL > create user kumar identified by kumar;
Created by the user.
SQL > grant connect, kumar resources;
Grant succeeded.
SQL > commit;
Validation complete.
SQL > conn kumar/kumar;
ERROR:
ORA-01017: name of user and password invalid. connection refused
WARNING: You are more connected to ORACLE.
SQL > conn sys as sysdba
Enter the password:
Connected.
SQL > show con_name;
CON_NAME
------------------------------
CBD$ ROOT
SQL > conn kumar/kumar@PDBDEV
Connected.
SQL > show con_name;
CON_NAME
------------------------------
PDBDEV
SQL > show user;
The USER is 'KUMAR '.
Thanks for the suggestions.
Concerning
Kumar
-
ORA-01017 when duplicate RMAN database active
Hello, ORACLE guru!
I have some difficulties trying to reproduce DB via RMAN duplicate from active database.
The script is simple:
run { allocate channel ch1 device type disk; allocate auxiliary channel aux1 device type disk; duplicate target database to mydb from active database; }
The problem is in this summary:
Starting backup at 15-JAN-14 channel ch1: starting datafile copy copying current control file Oracle instance started Total System Global Area 10689474560 bytes Fixed Size 2237776 bytes Variable Size 4227861168 bytes Database Buffers 6442450944 bytes Redo Buffers 16924672 bytes contents of Memory Script: { sql clone "alter system set db_name = ''mydb'' comment= ''Reset to original value by RMAN'' scope=spfile"; sql clone "alter system reset db_unique_name scope=spfile"; shutdown clone immediate; } executing Memory Script sql statement: alter system set db_name = ''mydb'' comment= ''Reset to original value by RMAN'' scope=spfile sql statement: alter system reset db_unique_name scope=spfile Oracle instance shut down released channel: ch1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 01/15/2014 12:16:07 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ch1 channel at 01/15/2014 12:15:57 ORA-17629: Cannot connect to the remote database server ORA-17627: ORA-01017: invalid username/password; logon denied ORA-17629: Cannot connect to the remote database server RMAN> RMAN>
check and see the differences:
-
OEM 12.1.0.3 Setup fails with ora-01017
Greetings,
I'm trying to upgrade my OEM 12.1.0.1 installation at 12.1.0.3. I'm following the instructions in the Oracle Enterprise Manager Cloud control Upgrade Guide and Support Oracle Note 1568143.1. I checked that all the prerequisites are met and have installed patch 11061801 in the repository. The repository and WHO are on different computers. The 12.1.0.1 installation is able to connect to the repository, it worked successfully for some time now. On the SGD server, quit the SGC and Agent and I invoke the 12.1.0.3 installation program. I followed the steps and when it gets to the login page, it fails with ORA-01017. Messages are displayed -
1. check if the SYS password you have entered is valid.
2. check if the REMOTE_LOGIN_PASSWORDFILE database initialization parameter is set to either shared or Exclusive.
3. check whether a file with the file name orapw < SID > password exists in the < ORACLE_HOME > / dbs directory.
All the conditions are met:
-bash-3, $ 2 echo $ORACLE_SID
oemrepos
SQL > connect sys as sysdba
Enter the password:
Connected.
SQL > connect sysman
Enter the password:
Connected.
SQL > show parameter remote_login_passwordfile
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
Remote_login_passwordfile string EXCLUSIVE
-bash-3, $ 2 ls-l $ORACLE_HOME/dbs/orapwoemrepos
-rw - r - 1 oracle dba 1536 January 30, 2013 /usr/local/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/orapwoemrepos
I am able to connect remotely from another machine. sqlplus is not installed on the SGD server.
I am completely confused and need help. Web search indicates only that I need to make sure that the conditions listed above must be met, they are. If anyone has any suggestions I would appreciate the help.
Thank you.
Bill Wagman
The problem has been resolved by recreating the password file. I used the same password. I don't understand yet why however.
Thank you
Bill Wagman
-
strange problem with the database link
Hello world
I have a strange problem with the link of database in Oracle 11 g Express Edition;
There are two computers: computer-server and the client computer. Tnsnames.ora are the same on both computers IE.
CT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = XE)
)
)
I created the database link:
Create database link zdalny
Connect to < user_id > identified by < password >
using "CT".
Customer cannot connect with server when I do not use above the command. But when I change 'use' for using "krzysztof:1521" or by using "krzysztof" or "server IP:1521" - everything is ok.
Why I ask. Because in all the materials that I read about Oracle command with the help of "CT" should work correct. But there is no. Do you know why?
Thanks in advance and apologize me for my English.
Rgds
KrzysztofHere's the tnsnames of your server, but to connect to the oracle server db (any client or to another instance of db oracle), you must install oracle client.
However, in your condition, you want to connect the DB1 Oracle OracleDB2 using a link db, I'm right? In this case you should always set the entry in the tnsnames.ora
To verify that you can connect to Oracle DB2 from DB1 Oracle, you can use tnsping in the command line.
In your casec:\tnsping CT
Krzysztof Szymaniak wrote: CT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)Check your tnsnames entry in the machine, you are trying to connect to. And check if the tnsping is successful.
Sometimes the error message says not everything, which means that you need to troubleshoot yourself and learn from the experience.
Always in the opposite case, refer to the documentation.See you soon.
Published by: Spongebob December 14, 2011 09:30
-
Duplicate database RMAN 11 GR 2 ORA-17627 ORA-01017 RMAN-03009 ORA-17628
Hello
I'm getting ORA-17627: ORA-01017: name of user and password invalid. connection refused when using the RMAN duplicate on the same host using the account Oracle DBA. The system is Linux Oracle and Oracle 11.2.0.1 5.5
I tested the connectivity and passwords and everything works fine. What could be the reason of this problem please?
Details below:
Thank you.
H3. Summary of the solution:
A big thank you to all who responded! The problem is solved finally :-)
The ORA-17627: ORA-01017 has been corrected using the connection string to connect to the target database, instead of target rman / in the command prompt
However, there was still another question:$ rman RMAN> connect target sys/password@orcl RMAN> connect auxiliary sys/password@clonedb RMAN> duplicate target database to clonedb from active database;
The alert.log to the auxiliary database (clonedb) shows:channel ORA_DISK_1: starting datafile copy input datafile file number=00001 name=+DATA/orcl/datafile/system.256.737564331 RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/29/2010 14:40:21 ORA-17628: Oracle error 19505 returned by remote Oracle server continuing other job steps, job failed will not be re-run
Errors in the /u01/app/oracle/diag/rdbms/clonedb/clonedb/trace/clonedb_ora_6129.trc file:
ORA-19505: impossible to identify the file ' / scratch/oradata/clonedb/datafile/orcl/datafile/system.256.737564331 '.
ORA-27040: create file error, cannot create the file
Linux-x86_64 error: 2: no such file or directory
I fixed the problem by changing the following text in the settings of the clonedb instance file:
* .db_file_name_convert =('+Data/ORCL/','/Scratch/oradata/clonedb/')
* .log_file_name_convert =('+Data/ORCL/onlinelog/','/Scratch/oradata/clonedb/logfile/')
Thank you!
H3. Problem:
H3. Configuration[orcl@ol55]$ rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Dec 28 21:40:25 2010 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (DBID=1265345286) RMAN> connect auxiliary sys/test@clonedb connected to auxiliary database: CLONEDB (not mounted) RMAN> duplicate target database to clonedb from active database; Starting Duplicate Db at 28-DEC-10 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=19 device type=DISK contents of Memory Script: { sql clone "create spfile from memory"; } executing Memory Script sql statement: create spfile from memory contents of Memory Script: { shutdown clone immediate; startup clone nomount; } executing Memory Script Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 645924856 bytes Database Buffers 188743680 bytes Redo Buffers 2396160 bytes contents of Memory Script: { sql clone "alter system set db_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile"; sql clone "alter system set db_unique_name = ''CLONEDB'' comment= ''Modified by RMAN duplicate'' scope=spfile"; shutdown clone immediate; startup clone force nomount backup as copy current controlfile auxiliary format '/scratch/oradata/clonedb/controlfile/control01.ctl'; restore clone controlfile to '/scratch/oradata/clonedb/controlfile/control02.ctl' from '/scratch/oradata/clonedb/controlfile/control01.ctl'; alter clone database mount; } executing Memory Script sql statement: alter system set db_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile sql statement: alter system set db_unique_name = ''CLONEDB'' comment= ''Modified by RMAN duplicate'' scope=spfile Oracle instance shut down Oracle instance started Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 645924856 bytes Database Buffers 188743680 bytes Redo Buffers 2396160 bytes Starting backup at 28-DEC-10 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=35 device type=DISK channel ORA_DISK_1: starting datafile copy copying current control file RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 12/28/2010 21:42:08 RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/28/2010 21:42:08 ORA-17629: Cannot connect to the remote database server ORA-17627: ORA-01017: invalid username/password; logon denied ORA-17629: Cannot connect to the remote database server
H4. Listener and Tnsnames
H3. Note: (UR = A) clause in tnsnames.ora is intended to operate with a dynamically
Manager recorded for the SERVICE_NAME against SID is preferable. (ID 362656.1)
H4. pFile and spfile$ cat /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (ORACLE_HOME= /u01/app/oracle/product/11.2.0/db) (SID_NAME = clonedb) (GLOBAL_DBNAME= clonedb.example.com) ) ) ADR_BASE_LISTENER = /u01/app/oracle ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON $ cat tnsnames.ora # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db/network/admin/tnsnames.ora # Generated by Oracle configuration tools. CLONEDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = clonedb.example.com) (UR = A) ) ) $ lsnrctl status LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-DEC-2010 21:35:54 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 26-DEC-2010 02:59:35 Uptime 2 days 18 hr. 36 min. 18 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/ol55/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol55.example.com)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "clonedb.example.com" has 2 instance(s). Instance "clonedb", status UNKNOWN, has 1 handler(s) for this service... Instance "clonedb", status BLOCKED, has 1 handler(s) for this service... Service "orcl.example.com" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB.example.com" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "test.example.com" has 1 instance(s). Instance "test", status READY, has 1 handler(s) for this service... Service "testXDB.example.com" has 1 instance(s). Instance "test", status READY, has 1 handler(s) for this service... The command completed successfully
H4. Password file and the connection test$ cat initclonedb.ora clonedb.__db_cache_size=192937984 clonedb.__java_pool_size=4194304 clonedb.__large_pool_size=4194304 clonedb.__oracle_base='/u01/app/oracle' clonedb.__pga_aggregate_target=339738624 clonedb.__sga_target=503316480 clonedb.__shared_io_pool_size=0 clonedb.__shared_pool_size=293601280 clonedb.__streams_pool_size=0 *.audit_file_dest='/u01/app/oracle/admin/clonedb/adump' *.audit_trail='db' *.backup_tape_io_slaves=TRUE *.compatible='11.2.0.0.0' *.control_files='/scratch/oradata/clonedb/controlfile/control01.ctl','/scratch/oradata/clonedb/controlfile/control02.ctl' *.db_block_checking='full' *.db_block_checksum='full' *.db_block_size=8192 *.db_create_file_dest='/scratch/oradata/clonedb' *.db_domain='example.com' *.db_name='clonedb' *.db_recovery_file_dest='+FRA' *.db_recovery_file_dest_size=12884901888 *.log_archive_dest='/scratch/oradata/clonedb/archivelog' *.diagnostic_dest='/u01/app/oracle' *.dispatchers='(PROTOCOL=TCP) (SERVICE=clonedbXDB)' *.memory_target=843055104 *.open_cursors=300 *.processes=150 *.remote_login_passwordfile='EXCLUSIVE' *.undo_tablespace='UNDOTBS1' *.db_file_name_convert=('+DATA','/scratch/oradata/clonedb/datafile') *.log_file_name_convert=('+DATA','/scratch/oradata/clonedb/logifle') $ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 28 21:26:41 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount pfile='$ORACLE_HOME/dbs/initclonedb.ora' ORACLE instance started. Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 641730552 bytes Database Buffers 192937984 bytes Redo Buffers 2396160 bytes SQL>
Published by: Dude on December 29, 2010 06:37$ orapwd file=$ORACLE_HOME/dbs/orapwclonedb password='test' $ sqlplus 'sys/test@clonedb as sysdba' SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 28 19:58:14 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
Hi guy,
Please configure the tnsnames and auditor of the target and auxiliary.
That set the script to use OIC to connect in both instances like this:connect target sys/test@orcl
connect auxiliary sys/test@clonedbPlease after the release.
Kind regards
Tycho -
ORA-28545 on mySQL - Oracle database link
Hi all
I am trying to establish a connection to the mySQL to oracle database.
Oracle database is running on the 64-bit windows 2003 and version 10.2.0.4.0 computer.
My init < dbname > and tnsnames, listner looks like this and I can create links from the database without any problems at all. Also oracle for oracle database links work properly on this machine as well.
When I try to start the listner and then make the tnsping everything seems fine.HS_FDS_CONNECT_INFO=BOOKDB HS_FDS_TRACE_LEVEL=debug BOOKDB= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=tcp)(HOST=10.16.72.176)(PORT=1522)) (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))) SID_LIST_BOOKDB= (SID_LIST= (SID_DESC= (SID_NAME=BOOKDB) (ORACLE_HOME=C:\oracle\product\10.2.0\db_1) (PROGRAM=hsodbc) ) ) BOOKDB= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=10.16.72.176)(PORT=1522)) (CONNECT_DATA=(SID=BOOKDB)) (HS=OK) )
And then I create the database link and it created no problem.C:\Documents and Settings\adminkh>lsnrctl start bookdb LSNRCTL for 64-bit Windows: Version 10.2.0.4.0 - Production on 20-JUL-2010 12:01:40 Copyright (c) 1991, 2007, Oracle. All rights reserved. Starting tnslsnr: please wait... TNSLSNR for 64-bit Windows: Version 10.2.0.4.0 - Production System parameter file is C:\oracle\product\10.2.0\db_1\network\admin\listener.ora Log messages written to C:\oracle\product\10.2.0\db_1\network\log\bookdb.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.72.176)(PORT=1522))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc))) Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=10.16.72.176)(PORT=1522)) STATUS of the LISTENER ------------------------ Alias bookdb Version TNSLSNR for 64-bit Windows: Version 10.2.0.4.0 - Production Start Date 20-JUL-2010 12:01:42 Uptime 0 days 0 hr. 0 min. 3 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora Listener Log File C:\oracle\product\10.2.0\db_1\network\log\bookdb.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.72.176)(PORT=1522))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc))) Services Summary... Service "bookdb" has 1 instance(s). Instance "bookdb", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully C:\Documents and Settings\adminkh>tnsping bookdb TNS Ping Utility for 64-bit Windows: Version 10.2.0.4.0 - Production on 20-JUL-2010 12:02:16 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=10.16.72.176)(PORT=1522)) (CONNECT_DATA=(SID=bookdb)) (HS=OK)) OK (10 msec)
And then I try to run the small request.create database link booklink connect to bookuser identified by ITDepartment using 'BOOKDB';
If anyone can help me regarding this error.SQL> select * from admins@booklink; select * from admins@booklink ORA-28545: error diagnosed by Net8 when connecting to an agent Unable to retrieve text of NETWORK/NCR message 65535 ORA-02063: preceding 2 lines from BOOKLINK
Published by: Mariam on July 20, 2010 04:08
Published by: Mariam on July 20, 2010 04:09There was no HSODBC for Windows 64-bit (take a look in the ORACLE_HOME/bin directory - there is no hsodbc.exe file at all).
You can use product tracking V11.2 DG4ODBC place. 11.2 DG4ODBC was the first certified on 64-bit Windows lets connect you from your Oracle 10.2.0.4 Database 11.2 DG4ODBC which then connects with the 64-bit ODBC driver to the MySQL database.You only need to make sure to install DG4ODBC 11.2 in its own ORACLE_HOME - do not install it in your 10.2.0.4 already existing directory ORACLE_HOME - otherwise you will corrupt the existing installation of 10.2.
Published by: kgronau on July 20, 2010 14:13
-
Getting ORA-01017: invalid username/password error only with specific tools
Hello
I'm still a Junior DBA familiar with Oracle. I have difficulties to access one of my databases with tools of TOAD and SQLDetective. When I try to connect to my database using these tools, I get the error:
ORA - 01017: name of user and password invalid. connection refused
Even if the password and user name is correct.
I can correctly connect through other tools like SQLTools and sqlplus. I searched on this problem and I've seen people with the same problems, but I could not find a solution. The strange thing is, I can use TOAD and SQLDetective to connect to other databases with no problems. It seems to be present a specific database.
My database is a database 11g on linux machine. I have clients 9i and 10 g installed on my machine. All my applications use the 9i on my machine home tnsnames.
Any help on this would be greatly appreciated. Thank you.
RGS,
Rob
Published by: rgilligan on April 16, 2010 02:11Hello, if it is 11g, look at the sec_case_sensitive_logon parameter. This default is true, which makes the case-sensitive password. Some tools/applications do a HIGHER or LOWER on the password and so what can the reason for the error
Henner
-
A question about the CREATE DATABASE LINK PUBLIC and ORA-12154 error
Hi all
I have a problem on the public database link creation and I would be grateful if you could kindly give me a helping hand. I have the following connection settings in my
tnsnames.ora file:
Having the above mentioned parameters, I can connect to this remote database directly in a SQL * more shell:... DGPAPROD.WORLD = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY=tcp.world) (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521) ) ) (CONNECT_DATA = (SID = DGPAPROD)) ) ...
It works pretty well and the connection is established without any problem.$ sqlplus username/[email protected]
Now, what I want to do is to create a public database of this remote database link to avoid the user/connection of switch for the visualization of the
the content of this database. I proceeded in line with the syntax indicated in the Oracle online documentation:
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205
This is why I run the following to create a public database link
Apparently there is no error and the link is created successfully. However, it cannot resolve the remote host and every time I run this queryCREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';
(myenterprise is the name of a table in the remote database)
What causes this problem?SELECT * FROM myenterprise@SR001_dblink ERROR at line 1: ORA-12154: TNS:could not resolve the connect identifier specified
Thanks in advance,
Kind regards
DariyooshYou must have defined DGPAPROD. WORLD in tnsnames.oar on the server where DB is runnig.
-
primary DB in the role of Eve with ORA-16816: incorrect database role
We have two node RAC of Primary (oraqa) as well as two-node RAC Physicalstandby (orasqa) managed by dataguard broker. Start quick active failover. Version of the database is 11.2.0.3. OS is Redhat 5.3
There are a few days, our primary oraqa switched to orasqa by fast-start failover, and I couldn't get the passage from some network problem.
Today, the network number, and I want to the transition to the orasqa to oraqa.
However, I got this error:
ORA-16816: incorrect database role
a check for database_role in v$ database at orasqa shows that it is read only physical role of Eve.
So now the two oraqa/orasqa are in the physical database role.
How can I solve this problem?
Help is very appreciated.
Note that in his note, where it is a:
change the database for validation at the grade crossing;
This is the step where it converts the physics of the day before in a primary. So I would try to convert the database that was recently in primary mode at the elementary level. If this works, you need to do several switches of newspaper and make sure you have Data Guard work system before retrying the switch.
I had this happen without a broker and you end up with what amounts to two standbys. "change database validation at the primary crossing" in kind of a way to double back to where you started.
If this gives you more trouble, I'd get Oracle support help as soon as POSSIBLE.
Another way to look at
If you were doing this with SQL the brief summary can be:
On primary
1. check switchover_status
2. commit to failover to standby database
3 stop of the database and the Mont as new mode standby
4 reporter the destination of archive remote
At this point, you have in fact two standbys and zero primary.
If your switchover_status gives a wrong answer, you need to return the primary.
So rather than place orders to the other server, you continue on the same server, a double return and you convert to what was again the primary back to a primary.
Then you trouble shoot the issue and try again.
If you use a broker I would not use SQL unless Oracle Support told me to mix of SQL and broker is a bad idea.
Best regards
mseberg
-
How to run DBMS_HS_PASSTHROUGH with the name of the variable database link?
Hello
I want to run some native sql through DBMS_HS_PASSTHROUGH of oracle to sybase.
but the name of the database link is variable, from things as below:
BEGIN DBMS_HS_PASSTHROUGH. OPEN_CURSOR@db_link_name;
where db_link_name is a local variable and pl/sql still communicate compile error.
Have experience with this?
Thank you.
RockINTO l_cursor
I think you mean...
USING OUT l_cursor
Maybe you are looking for
-
Satellite L850 - need to change the STRANGE to the Blu - Ray player
Hello My wife wants to use his laptop L850 for watching movies.But most of our home videos are Blu - Ray format. Can I change the DVD player for a reader Blu - Ray. If so should what model or specifications I look for?And will it take new drivers tha
-
Have the HP Pavilion Elite m9650f with motherboard replaced in April 2012 class good to go. Replaced the stock GPU Nvidia GeForce 9800 GT with a Zotac GTX 560 Ti GPU and the stock HP 460 Watt power supply with a W0388RU Thermaltake TR2 600 Watt PSU i
-
get an hp mce remote for touchsmart 300-1125
I want to add a command remotely to my HP Touchsmart 300-1125 and think to order the remote control 5070-5600 HP (random link: http://cgi.ebay.com/HP-COMPAQ-5070-5600-Media-Center-Remote-Control-/330414657906#ht_805wt_911). I wonder two things: (1) t
-
Realtek High Defination Audio speakers is not plugged in, no sound in Windows
Hi guys. I got my PC for about 2 years now, and all of a sudden my audio stopped working. When I go to manage my audio devices in the Control Panel, it says "realtek high definition audio speakers are not connected. I use the onboard sound on the mot
-
Gateway transport seems to start web listening port
Tried to install 3.5 gateway Transport under CentOS 6.x. I can start the process and I see a few items in the list of processes for it, but I see nothing listening on port 80 by looking at the output of netstat and, of course, "nothing to see when yo