I intend to create a DB Gateway from Oracle to Postgres. I have the appropriate file (Setup) file for installation.
Now, I after I execute the setup and proceeded with further steps.
A new directory in Oracle_Home where DB Gateway will be installed.
Selected the option for "ODBC" gateway.
The installation fails and says the following :
DB Gateway Error:
Now if I see the errorlog file --> configToolFailedCommands
The log file says:
rem Copyright (c) 1999, 2009, Oracle. All rights reserved.
C:\Windows\system32\cmd /c call
C:\oracle\product\11.2.0\client_1\OraGtw11g_home2/bin/netca.bat /orahome C:\oracle\product\11.2.0\client_1\OraGtw11g_home2 /orahnam OraGtw11g_home2 /instype custom /inscomp client,oraclenet,server /insprtcl tcp,nmp /cfg local /authadp NO_VALUE /responseFile
C:\oracle\product\11.2.0\client_1\OraGtw11g_home2\network\install\netca_typ.rsp
I do not know how to read the log file if it contains an error.
The file mentioned by Oracle (configToolFailedCommands) is not an error log file but a script file allowing you to re run the commands which have previously failed.
Related
I have just installed a oracle 12c 12.1.0 DB on a linux machine.
after completing the installation i tried to login to database as sysdba
[oracle#bjorn adump]$ sqlplus sys as sysdba/welcome
SQL*Plus: Release 12.1.0.2.0 Production on Wed Oct 12 16:41:17 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
Now i tried to startup the DB using below command
SQL> startup mount
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
and this error pop up !
my ENV variable are --
[oracle#bjorn adump]$ echo $ORACLE_BASE
/oracle
[oracle#bjorn adump]$ echo $ORACLE_HOME
/oracle/product/12.1.0/db_1
I have checked into pfile which is $ORACLE_HOME/dbs/init.ora
there is the entry for audit file
audit_file_dest="/oracle/admin/orcl/adump"
I also go to this location and check if the folder exists or nt but the folder was there and it aleady has some files in it like
orcl_m000_21634_20161012143245012051143795.aud
there are lots of file with names like this.
I gave permission to this folder
chmod -R 755 /oracle/admin/orcl/adump
tried creating a new file using
touch afile
and file get created.
It also got connect to the idle session but when i tried to do a startup the error pops up !
Please suggest what i am overlooking here which needs to be corrected.
Usually this could happen because:
AUDIT_FILE_DEST is not writable(chown +w $AUDIT_FILE_DEST)
$ORACLE_BASE/admin/$ORACLE_SID/adump exists and is not writable
$ORACLE_HOME/rdbms/audit is not writable
PS: Make sure to check permissions for the oracle user
Also please check for disk space availability
In our case, one of the drives in one of our 2-node RAC servers was failing - the reason why the OS (Linux) limited anyone's access, including root, to read-only.
The amber light was suppose to turn on but it didn't. It only turned on when we restarted that particular node.
You also have 3 things to verify:
- As already mentionned, check free space with df -have
- Check if the file system are Read/Write or read-only: cat /proc/mounts
- Finally, you can check free inodes space with df -i
Detailled information can be found here: https://www.oracle-scripts.net/unable-to-create-audit-trail-file-read-only-file-system/
I'm pretty young in BI and I'm stuck in here with some DTS packages, I have SQL server 2014 installed on 2 servers. In fact I have to execute a batch file from server1 which uses DTS packages to move data from a SQL server DB located in server2 to an Oracle db located in server1. I configured my packages locally and tried to run it with my BIDS when modifying the packages and it worked. What I really need is to just execute a batch file (with all parameters in it) to make the transfer.
The bat file is configured like this:
call myVariable.bat
"D:\...\120\DTS\Binn\dtexec" /ser SERVERNAME /U SQLUSER /P PSW /Conf "D:...\Config.dtsConfig" /sq "myDTSfile"
call resetMyVariable.bat
The error I get is:
The specified package could not be loaded from SQL server database. How can I add them to the db?
In SSMS 2014, I can't find anywhere an option to install or add dts packages to the db. Is there a way to do it with SQL Server 2014 or another solution to solve my problem?
Migrate your package to SSIS. Visit http://sqlmag.com/sql-server/coordinating-dts-ssis-migration
Or http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=169050
my .ctl file is :
LOAD DATA
INFILE "C:\Users\nkb1\Desktop\fnames.txt"
INTO TABLE MDB.TEACHERS
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(first_name,last_name)
i am executing this from the windows command prompt as
sqlldr system#mdb/mdb control=C:\Users\nkb1\Desktop\load.ctl
and i am getting error like this.
C:\Users\nkb1>sqlldr system#mdb/mdb control=C:\Users\nkb1\Desktop\load.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Wed May 4 14:44:22 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIEnvCreate [-1]
and i have set the ORACLE_HOME variable as C:\oracle\product\10.2.0\db_2 where the db stores
Bad news, this is a bug in 10.2.0.1.
Check Metalink document 361325.1 (hope you have access)!
Maybe you'll just have to grant additional privileges but it is possible that you'll need to apply the 10.2.0.3 patch set
I hit the same issue. Closed the command prompt.Opened one with Administrator Rights - Open CMD as Administrator.
That's it. This solved all the issues I had been facing.
If you have saved the SQLLOADER/SQLPLUS scripts as a batch file, then submit/open the batch file as administrator .
Hope this helps.
I currently support an MS Access database that has linked connections using the Microsoft ODBC Driver for Oracle. I can connect to the current linked tables without any issues, but we are required for security reasons to change the password on the account accessing the Server.
I have changed the password successfully but now when I attempt to relink the tables I get the error:
ODBC--call failed
Microsoft ODBC driver for ORacle ORA-12154: TNS could not resolve service name
These tables are part of a critical application and now we can't connect. Any suggestions on how to resolve this?
The ORA-12154 error indicates that you are specifying a TNS alias that is not resolving. Are you using a DSN for your connection to Oracle? If so, what is the TNS alias you're specifying there? Does that alias exist in your tnsnames.ora file? Are there multiple tnsnames.ora files on the client?
The tnsnames.ora file is on the client machine where Access is installed. Without knowing what version of the Oracle client is installed, the simplest way to find out which tnsnames.ora file is being used is probably to open up a DOS prompt and type "tnsping service_name" where `service_name" is whatever TNS alias is specified in your DSN. You'll get something like
C:\Users\jcave>tnsping fuddy_duddy
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-OCT-2
010 08:10:51
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\sqlnet.ora
TNS-03505: Failed to resolve name
The "Used parameter files" line tells you the directory where the TNS related files are stored. There should be a tnsnames.ora and a sqlnet.ora file in that directory.
I am trying to import into oracle using imp command and the output of the command is as below.
invincible:/home/invincible# imp
Import: Release 10.2.0.1.0 - Production on Thu Aug 12 22:19:00 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Username: n_data
Password:
IMP-00058: ORACLE error 1034 encountered
ORA-01034: ORACLE not available
ORA-27123: unable to attach to shared memory segment
Linux Error: 13: Permission denied
IMP-00005: all allowable logon attempts failed
IMP-00000: Import terminated unsuccessfully
invincible:/home/invincible#
user name and password are correct(I am able to connect using sqldeveloper). I have granted dba access to n_data. All the environment variables are set (I ran oracle_env.sh before running env ). So what might be the problem? I am running oracle on debian.
Check this blog post: ORA-27123: unable to attach to shared memory segment.
It describes same error as you have and problem was caused with incorrectly set permissions on oracle executable.
This is excerpt from the above blog post:
Here the oracle file permission has
-rwxrwxr-x i.e. 775, but this file must have the permission -rwsr-s- -x
i.e. 6751
Change the permissions for oracle
file.
$ cd $ORACLE_HOME/bin
$ chmod 6751 oracle
$ ls -l oracle
-rwsr-s--x 1 oracle dba 119582976 Feb 3 2008 oracle
After changing the permissions on
oracle executable file, all the users
are now able to connect to the
database without any errors.
Read blog post for detailed information.
The error suggests it is trying to connect to an instance on the same host that isn't there. Generally I'd say the database isn't actually up and running, but if you can connect with SQL Developer, it suggests it is. But check you are on the correct machine.
Also try
echo :${ORACLE_SID}:
There may be some stray character in the SID. If you are using XE, you want to see :XE: (in upper case, not mixed or lower)
Have you tried
imp n_data/password#XE