Can't initialize OCI. Error -1. Toad for Oracle 10 and Oracle 10g [closed] - oracle10g

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to connect Oracle 10g database server from my client PC using toad 10 Commercial. I have Oracle 10g installed in my PC. When I try to connect, it gives error Can't initialize OCI.Error -1 .
So far I am able to perform tnsping to the oracle server. I have all the settings working in my tnsnames.ora.
Any suggestions are highly appreciated.
Thanks.

Found the solution myself. The problem was with windows 7 permission issue.
I opened Toad with run as administrator , privilege and the problem get solved.

Taken from https://support.quest.com/SolutionDetail.aspx?id=SOL61710
RESOLUTION 1:
Right-click the Toad for Oracle shortcut and select "Run as Administrator" to avoid the error.
RESOLUTION 2:
Right-click the Toad for Oracle shortcut | Properties | Compatibility Tab | check mark "Run this program in compatibility mode for" | choose "Windows XP Service Pack 3" from the drop-down list.
RESOLUTION 3:
Right-click My Computer | Properties | Advanced tab | Environment Variables | under ‘System Variables’ (lower part) | check if you have an entry for ORACLE_HOME. If yes, rename it to ORACLE_HOME_OLD, and then re-test the issue.
RESOLUTION 4:
Upgrade your Oracle client to a version that is 10.2.0.4 or later.

I have another resolution. I had this issue ater setting NLS_LANG environment variable to LATIN AMERICAN SPANISH.
When rebooting windows7, TOAD would not start showing error Can't initialize OCI. Error -1
I had to delete NLS_LANG / NLS_LANGUAGE environment variable.
Now i have to set NLS_LANGUAGE executing ALTER SESSION while logged in TOAD.
No OCI error anymore.
Hope it halps.

Kindly follow up the below steps to solve the (Can't initialize OCI. Error -1)title issue.
go to enviroment variable
remove all variable path in user variable.
Also check the permission.
Thanks
Anandaraj

Related

Where does mongodump saves data by default? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm trying to backup a database which uses mongodb (Ubuntu LTS 18.04)
So I managed to run mongodump command without any errors but still I can't find the location of the backup database. I only used the mongodump command so it must save it in the default location. Can someone help me?
Thanks
By default it will save your dumped data into directory dump which will be created in the same directory you run the mongodump command.
You can also specify the out folder for the dump like so:
mongodump -u"username" -p"xxxxxx" --db=dbname --out=mongodata/

Create a Database on DB2 on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have just instally successfully db2 on my linux machine, but I am not able to create a database.
When I make CREATE DATABASE ABC; I get the error that I haven't the authorization to create it...how can I get this authorization?
When you install DB2, you most probably use the root user of the Linux server.
Then in installing phase, you provide a user which will have the SYSADM and DBADM rights. That means DB2 creates a user which has all rights on the database(database admin).
So, after installation, you have to switch to that user to have rights to create a new database.
Depending on the version you installed, that username might be changed. But DB2 uses db2inst1 by default as administrator user.
Check your /home directory. You will see a new user(most probably db2inst1). Then switch to that user with:
su - db2inst1
then issue:
db2 CREATE DATABASE ABC
Let me know if you have a problem, also please provide your /home directory and the error message you get.
You can check details of create db command and related authorization required here on DB2 Info Center:
http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0001941.html?cp=SSEPGG_10.5.0%2F3-5-2-4-21&lang=en
As said above, this should work if you login as instance user. Most of times you do not need root access with DB2.

importing .dmp file in oracle 10g express edition [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am having a problem while using the below command in the windows operating system and I have installed the oracle 10g server on my local machine which I am able to connect using client IDE
When I try to use the below command to import a dump file in my local DB
"imp system/ file=tms.dump log=test.log" in command prompt
where the binary of imp and the dump file is located in
"C:\oraclexe\app\oracle\product\10.2.0\server\bin"
I am getting the below error
error: unable to write logfile
I do not know how to create the log file
Thanks
The most likely reason for the error is that you are using an account which doesn't have write privileges on bin. You haven't specified a path, so like most utilities, imp will write its log files to the current directory.
bin is traditionally the sub-directory for holding executables. It is a very bad idea to use it for storing application data such as dump files.
Instead you should be working from a different location, ideally some sub-directory which you use solely for storing dump files. Either way, it must be a directory for which your user has write privileges.

Can't connect to PostgreSQL in Windows Server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I'm trying to upgrade my version of PostgreSQL to 9.2 on a Windows Server OS and I keep getting the following error:
An error has occurred:
Error connecting to the server: FATAL: password authentication failed for user "postgres"
How do I make it not do this and actually connect like it is supposed to? I'm using the exact same password from my older installation.
Running the installer via EnterpriseDB prompts you for a password during the initial setup - This password is the postgres users password:
If you do not remember the password, or if you typed it incorrectly during the install(twice!) try these steps:
edit pg_hba.conf to allow trust authorization temporarily
Reload the config file (pg_ctl reload)
Connect and issue ALTER ROLE / PASSWORD to set the new password
edit pg_hba.conf again and restore the previous settings
Reload the config file again
The files will be located in C:\Program Files\PostgreSQL\9.2\data if you installed to the default path.
You can reload the configuration via PhAdmin III by right clicking on the server name and choosing reload configuration or use pg_ctl reload. Barring that restart the service or reboot.

Installing Bugzilla with a sql database on a different drive - how to connect database? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm attempting to install Bugzilla on a server with a MySQL database on it already. The database is on E: (for space) and Bugzilla is on C:. Currently Bugzilla does not have a database associated with it, and the perl checksetup script looks for a drive local database.
How can I attempt to get bugzilla to target the database on my other drive? Is there a line I can change in the initial scripts to do this?
You tell Bugzilla how to connect to the database server in the localconfig file.
$db_driver = mysql
# The DNS name of the host that the database server runs on.
$db_host = localhost
I believe with MySQL you can also directly connect via a local socket. Be sure to follow the Bugzilla installation instructions for setting up a database, a database user and password for the connection to use. The tables will be set up automatically by Bugzilla's setup scripts.