I installed, on Mint15 64bit, the Oracle Instant client package 11
Each time I try running sqlplus I get message
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
Of course I set correctly the $ORACLE_HOME. I tried to set LANG=us
Same result.
I tried with instant oracle 12.1, same results !?
Except waving to MariaDb ;) What part is wrong in my install ?
export ORACLE_HOME=/yourpath
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=your sid
sqlplus / as sysdba
Have you added the ORACLE_HOME bin path to the PATH and are you running the sqlplus command with oracle user.
Thanks & Regards,
Alok Thaker
The installation instructions at the bottom of the download page say:
Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH
is the appropriate environment variable. On Windows, PATH should be
used.
You need to set LD_LIBRARRY_PATH, not (just) ORACLE_HOME. And make sure it's exported, not just set in your current shell.
Ok, Done...
In fact, the sqlplus binary must be in $ORACLE_HOME/sqlplus !
Larry... Why did you "hardcode" that ;)
Related
I'm studying pro angularjs by adam freeman. I've installed deployd v0.8.8 and created sportsstore. When I run 'dpd –p 5500 sportsstore\app.dpd' form command prompt, it shows 'Failed to start MongoDB Make sure 'mongod' are in your $PATH or use dpd --mongod option. Ref: http://docs.deployd.com/docs/basics/cli.html bye'.
I've found all the possible answers as much as I can. But still can't solve it. I'm using Windows 7 32-bit. Please help me.
Try to run like this: http://pastebin.com/raw/apKQb043 (Moved code snippet to pastebin).
Hello you must install mongodb after this add the path of th folder installation into the windows path environment restart your cli and type again the command
from control panel open up advanced system settings. click on environment variables. under system variables select path and click edit. then add the directory for your mongodb installation in my case is "C:\Program Files\MongoDB\Server\3.2\bin". P.S if you use windows 8.1 or an earlier release of windows OS type a ";" first. leave out out the quotation marks.
I am new to DB2 and I have installed DB2 9.7.
I created an instance which is shown below
[sathish#oc3855733574 ~]$ db2ilist
sathish
Settings of /etc/services is shown below
DB2_sathish 60000/tcp
DB2_sathish_1 60001/tcp
DB2_sathish_2 60002/tcp
DB2_sathish_END 60003/tcp
DB2_TMINST 50000/tcp
But, when I start using 'db2start' it throws the following error
07/31/2015 10:26:20 0 0 SQL1042C An unexpected system error occurred.
SQL1032N No start database manager command was issued. SQLSTATE=57019
I installed DB2 using 'root' and starting 'DB2' from 'instance' (sathish in this case)
Any help or URL link will be of great use
Thanks
Sathish Kumar
I had a look into db2diag.log file and I got a unusual hack from one of the website
I followed the steps mentioned below and it worked
a) db2trc on -f db2trace.out
b) db2start
c) db2trc off
This problem generally occurs if you have recently changed the password of the account which is the owner of that db2 instance what you need to do is go to services-> properties of the db2 instance -> and then from log on part select local system account
This looks like something is wrong with the installation. There should be some hints on what DB2 ran into in the db2diag.log file (look under ~/sqllib/db2dump/db2diag.log).
What you could do if the db2diag.log does not provide a clue is to verify your installation is correct. DB2 includes a tool for that named "db2val". Here is the link to the documentation of db2val for version 9.7. Just run "db2val" as the instance owner and check the output.
Try
sudo -i -u db2inst1 /database/config/db2inst1/sqllib/adm/db2start
For more information
https://dba.stackexchange.com/questions/49807/sql1641n-error-on-linux-while-running-db2start-using-db2-express-c-on-linux-luw
I have to take backup of my database but when I right click DB and then backup The button for backup is disabled. Similarly in existing database ,not able to restore because the Restore button too disabled.
I was working fine till the time I created a new database.
How do they get enabled?
I had the same problem in ubuntu 14.04. It was necessary to install both postgresql-client-common (which contains pg_dump and pg_restore) and postgresql-client packages.
There is no need for reinstall,
just open File->Options->Binary paths and add set "PG bin path" to path where pg_dump/pg_restore is located.
Here is a solution:
$ yum install postgresql-contrib
Problem could be caused by a fact that you simply do not have pg_dump and pg_restore tools installed (or they are not visible for pgadmin).
This had happen to me when installing pgadmin3 on CentOS 7 via PostgreSQL yum repository. To resolve this I had to install package with those tools - in my case postgresql94 (PostgreSQL client programs and libraries).
On other distros you will need to find which package should be installed. AFAIK this issue is not present in Windows environment, pgadmin installer probably have all needed dependencies.
I was facing problem in restoring my database from backup, so I followed some steps:
Go to c:\ drive and find this path "C:\Program Files\PostgreSQL\13\bin"
Copy all the files from there then
past all the copied files to the given folder
"C:\Program Files\PostgreSQL\13\pgAdmin 4\runtime"
Your problem will definitely be solved.
You can go and check my video Where I showed step by step problem.
[link]
(https://youtu.be/GS3Dg0TfyFI)
Just reinstall your PGAdmin3.
We had the same problem on a Mac and after reinstallation, the right click menu showed more options like "Restore" and "Backup".
I had this issue (restore button disabled) and the problem was a corrupted dump.
So, I've created a new dump and tried again. After selecting the new file, the button became available.
in my case i'm on windows,
if python isn't installed, install it.
restart, and you're done.
I have checked in the pgadmin4 sql:
SELECT * FROM pg_available_extensions;
and got the current installed 2.1 which is not correct. You need to check on the db command line, the same query did result that the adminpack is NOT installed.
Solution: Logon to the DB on comand line and write
CREATE EXTENSION adminpack;
I'm trying to export my database, using MySQL Workbench 6.0 on Windows, to send to my db instance in Amazon RDS, but i'm getting this error:
Operation failed with exitcode 7
11:34:40 Dumping clubbin (taxicompanies)
Running: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe"
-defaults-extra- file="c:\users\selene\appdata\local\temp\tmp6o0hno.cnf"
--max_allowed_packet=1G --delayed- insert=FALSE --host=localhost --user=root
--port=3306 --default-character-set=utf8 "clubbin" "taxicompanies"
mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'
Does anybody have any idea that can help me?
mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'
This error occurs on various systems and can be temporarily fixed by:
Going to the appropriate directory depending on the system:
a) Windows: C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules (32-bit installation on x64 systems: C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules)
b) Mac OS X: Applications/MYSQLWorkbench.app/Contents/Resources/plugins - right click on the app and select Show Package contents to get inside the app (thanks to Bradley Flood)
c) Linux Ubuntu: /usr/lib/mysql-workbench/modules (thanks to Alessandro Lopes)
Open file wb_admin_export_options.py
Find line "delayed-insert":["Write INSERT DELAYED statements rather than ...
Insert # at the begin of this line to comment it out
Save file and restart Workbench.
Tested on Windows 7 x64, MySQL 5.6.27 (MyISAM) & Workbench 6.3.5 x64.
Tested on OSX Yosemite 10.10.4, MySQL 5.5.27 (MyISAM), Workbench 6.3.5 build 201 CE x64.
This worked for me.
Edit the file C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\wb_admin_export_options.py (make sure you open your editor as administrator)
find the line:
delayed-insert":["Write INSERT DELAYED statements rather than INSERT statements.","FALSE", "BOOL", ("5.0.0", "5.7.0")],
and put a hash “#” at the beginning of the line so that it looks like this:
# delayed-insert":["Write INSERT DELAYED statements rather than INSERT statements.","FALSE", "BOOL", ("5.0.0", "5.7.0")],
This will comment the line out so that Workbench won’t use this statement.
Save and close the file.
Start Workbench and try again.
Reference http://dannytsang.co.uk/mysql-workbench-error-code-7/
On Linux Ubuntu/Mint:
The config file is located at :
/usr/lib/mysql-workbench/modules/wb_admin_export_options.py
As described by c4pricorn, simply comment the line "delayed-insert":["Write INSERT DELAYED statements rather than...
And restart workbench.
Delayed inserts where deprecated in 5.6 and are converted to normal inserts in 5.7 (see also http://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html). I wonder why mysqldump reports an error on this. Regardless, MySQL Workbench must be adjusted to no use delayed-insert for dumps. Can you please file a bug report at http://bugs.mysql.com to bring this on the agenta for MySQL Workbench?
In CentOS 7,
Open file /usr/lib64/mysql-workbench/modules/wb_admin_export_options.py
Find line "delayed-insert":["Write INSERT DELAYED statements rather than ...
Insert # at the begin of this line to comment it out
Save file and restart Workbench.
As highlighted at an earlier post, by putting a # at the delayed-insert line in wb_admin_export_options.py does solves the problem.What i like to add is that when i tried to edit it in notepad and Pythonwin,i encountered the admin rights issue.They don't let me save the file after my edit.I finally work around it by editing and saving it in notepad++.One can download it from here https://notepad-plus-plus.org/
Removing delayed-insert line in wb_admin_export_options.py solves the problem. You need to get admin rights to modify the file.
Nonetheless consider that your MySQL database might have been not properly upgraded before.
Be careful on editor: on Win7 64 notepad doesn't work on this modification.
Notepad will present a single line, use an editor with crlf.
I had this error until I upgraded to the latest version. Currently 8.0.15. That fixed it on my Mac.
I've followed the directions in Installing MacPorts.
To install MacPorts using the pkg installer. The installation apparently goes fine. For example, it goes through the multi-step process eventually saying "Installation Successful" or something to this effect.
And now there's just the "little" problem that neither of these commands work:
man ports
which ports
I've checked in /usr/local, /bin, and /usr/bin, and I don't see where this has been installed to. Ideas?
They're in /opt/local/bin, so as to not overwrite stuff that came with Mac OS X or that you might have gotten from elsewhere. They won't be in your $PATH until you close that Terminal and open another (nothing can alter the environment of a running program except the program itself).
It's in /opt/local/bin. MacPorts updates .bash_profile to include this in the path, but obviously existing shells don't see the updated PATH variable...
It's probably because you're trying ports but the command is called port: See http://guide.macports.org/#using.port