sqlplus command is not found
System:
Oracle DB: 11.2.0.3.0
Linux: Red Hat 5.11
Problem. I am creating the table space, and I get the following error:
I signed as user ORACLE
It's the command that I am running:
$./create-tablespace.sh system ic_default 0racle GIVEN 200M ic_event + DATA DATA 800M + 800M ic_event_idx
How can I add Oracle home on my road?
I tried more earlier, but it did not work:
export PATH = $PATH: $ORACLE_HOME/bin
[DB01: / tmp/database] $ echo $PATH
/ usr/Kerberos/bin: / usr/local/bin: / bin: / usr/bin: / home/oracle/bin: / bin: / GGstore/goldengate: / bin
When I do: $ echo $ ORACLE_HOME
I have a blank line.
Would this work?
export ORACLE_HOME=/opt/oracle/product/11.2.0/bin
I don't want to change anything permanently, I want to just put the path so I can run the command to create the workspace.
Thanks for your help.
First of all, the only true command that you show us is where you call a shell script and the error in the shell script. You ask us to debug code that you don't show us.
Second
"When I do: $ echo $ ORACLE_HOME.
remove the space between "$" and "ORACLE_HOME.
Third
I was thinking of doing this
Export ORACLE_HOME = /opt/oracle/product/11.2.0
export PATH = $PATH: $ORACLE_HOME/bin
remove the spaces around the '='.
Finally, you need to do in the script that we cannot see is:
export ORACLE_SID=nameofyourdatabaseaslistedintheoratabfile export ORAENV_ASK=NO . oraenv #<<< that's 'dot space oraenv'
Who will use oraenv to correctly set the path, ORACLE_HOME, LD_LIBRARY_PATH, and perhaps others I forgot.
In regards to your concerns about the 'permanent' setting the variables... they are NEVER definitively defined. All environment variables exist only within a given session. Some may appear permanent because they are defined by the/etc/rc.profile, ~ /. RC.profile and ~/.bash_profile when you connect. Something else that you define, in will be for sure, only the session in which put you them.
Tags: Database
Similar Questions
-
taskdef class not found during the generation of code from wsdl using Ant
I'm getting a class not found error during the generation of the java code from the wsdl file.
*******************
CU dmwls (338) $ ant generate wsdl
BuildFile: build.xml
++ BUILD FAILED ++
++ file:/ffdt01/resmgt/kul/build.xml:14: taskdef class weblogic.wsee.tools.anttasks.WsdlcTask can not be found ++
Total time: 1 second
CU dmwls (339) $ cat - n build.xml
< default project 'all' = > 1
2 < name = "bea.home property" value="/opt/bea/wls/8.1sp4" / > "
"3 < name ="jdk.home property"value =" ${bea.home} / jdk142_05 "/ >
"4 < name ="weblogic.home property"value =" ${bea.home} / weblogic81 "/ >
5
6 < path id = "weblogic.classpath" >
"7 < fileset dir="${weblogic.home}/server/lib ">
8 < include name = "*.jar" / >
9 < / fileset >
10 < / path >
11
12 < taskdef name = "wsdlc.
13 classname = "weblogic.wsee.tools.anttasks.WsdlcTask"
14 classpathref = "weblogic.classpath" / > "
15
16 < name target = "generate-to-wsdl" >
17 < wsdlc
18 srcWsdl="/ffdt01/resmgt/kul/ksr.wsdl.
19 destJwsDir = ' / ffdt01/resmgt/kul.
20 destImplDir = ' / ffdt01/resmgt/kul.
21 classpathref = "${weblogic.classpath}" "
22 classpath = "${weblogic.classpath}" "
23 packageName = "examples.webservices.wsdlc" / > "
24 < / target >
25 < / project >
*******************
I checked this class in the use of weblogic.jar file unzip command but there is no class "WsdlcTask".
Unzip weblogic.jar-l | grep WsdlcTask - does not result
I am looking WsdlcTask class in all the jars under BEA_HOME directory using below command but not found in class WsdlcTask.
CD $BEA_HOME
To find. -*.jar name-exec unzip {}-l------. grep WsdlcTask - also returned no results
Some required classes does not appear in my weblogic.jar/jar file or there is something wrong with my build.xml file?
Help, please.
KuldeepHi Kuldeep,
WSDLC you use in WLS8.1 ehich is not correct... "weblogic.wsee.tools.anttasks.WsdlcTask" the above taskDef is present WLS9.x leave.
Please use the next task for WLS8.1 (http://download-llnw.oracle.com/docs/cd/E11035_01/wls100/webserv_ref/anttasks.html#wp1075710)
<>
WSDL = "WSDLs/MyService.wsdl"
destDir = "myService/implementation.
packageName="example.ws2j.service"/ >Thank you
Jay Sensharma
http://jaysensharma.WordPress.com/webservices/ (WebLogic wonders are here)Published by: Jay SenSharma on February 16, 2010 13:30
-
-bash: sqlplus: lsnrctl: command not found
Hello
# cat /etc/issue Oracle Linux Server release 6.7 Kernel \r on an \m [root@hostname bin]# lsnrctl -bash: lsnrctl: command not found [root@hostname bin]# sqlplus -bash: sqlplus: command not found [root@hostname bin]# ps -elf |grep -i smon 0 S oracle 23239 1 0 80 0 - 315538 semtim 16:37 ? 00:00:00 xe_smon_XE 0 S root 23411 23043 0 80 0 - 25840 - 16:39 pts/3 00:00:00 grep -i smon
We set up a XEN VPS with Oracle linux. It's really strange to me that db is running, but I'm not able to run the same sqlplus command from $ORACLE_PATH/bin
Please notify
Thank you in anticipation
- [root@hostname bin] # lsnrctl
-bash: lsnrctl: command not found
You run the Oracle commands under the root user: do not, run Oracle commands as user oracle.
Don't forget to set environment variables: http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL124
-
sqlplus: command not found
I installed oracle as user ora102 and create a new one like:
/ etc/passwd:
Oracle: x: 54321:54321: / home/oracle: / bin/bash
ora102:x:54322:54322: / home1/ora102: / bin/ksh
Headof:x:54323:54325: / home1/mbs/ho/maintain: / bin/bash
hoserv:x:54324:54325: / home1/mbs/ho/maintain: / bin/bash
/ etc/group:
oinstall:x:54321:
DBA:x:54322:Oracle, ora102
Headof:x:54323:
hoserv:x:54324:
test: x: 54325:ora102
For the user Lechefdela that I have:
-bash - $3.2 id - a
UID = 54323 (headof) gid = 54325 (test) groups = 54325 (test)
My problem is when I run sqlplus:
-bash-3, $ 2 sqlplus
-bash: sqlplus: command not found
the $ORACLE_HOME environment has been defined in the profile of ora102
Please help me
Apparently, you have correctly set home. Follow my previous comment and try to start the database:
sqlplus/nolog
...
SQL > connect / as sysdba
Connect to an instance is idle.<===== you="" should="" see="" this="" message="" after="" you="">=====>
SQL > startup
David Fitzjarrell
-
-bash: sqlplus: command not found
export ORACLE_SID = orcl
export PATH=$PATH:/app/sandip/product/11.2.0/dbhome_1/bin
export ORACLEC_HOME=/app/sandip/product/11.2.0/dbhome_1
$ sqlplus
-bash: sqlplus: command not foundHello;
This: (Type in the variable ORACLEC_HOME must be ORACLE_HOME)
export ORACLEC_HOME
will not work. Try:
export ORACLE_HOME=/home/sandip/app/sandip/product/11.2.0/db home_1 export PATH=$PATH:$ORACLE_HOME/bin
Then try to sqlplus
Best regards
mseberg
Correct the added host Oracle information.
Published by: mseberg on August 21, 2012 12:18
-
sqlplus: command not found on Linux
I have installed Oracle 10.2.1.0 in Ubuntu 10.10 My Setup was fine, I could even open isqlplus([http://ubuntu.ubuntu-domain:5560/isqlplus/workspace.uix]) and run queries...]) But, back in the terminal when I try to connect to sqlplus I get error
What could be the reason for this?oracle@ubuntu:~$ sqlplus / as sysdba sqlplus: command not found
Sandy wrote:
Thanks for the reply Ed... It is very usefuloracle@ubuntu:~$ env | grep ORA | sort ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/db_2 ORACLE_SID=orcl
even better...
env | grep -i ora | sort
-I switch tells grep to filter case insensitive. It will also pick up your WAY, if it includes (as it should) a reference to the oracle bin directory.
-
-bash: sqlplus: command not found UNIX
I just installed oracle on unix database.
Here is my profile.
I ran making[oracle@sam ~]$ cat .profile XAUTHORITY=/root/.xauthcy2rR4 DISPLAY=:0.0 ORACLE_HOME=/u01/oracle/10g/PROD export ORACLE_HOME PATH=$ORACLE_HOME/bin:$PATH export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib TNS_ADMIN=$ORACLE_HOME/network/admin ORACLE_SID=PROD export LD_LIBRARY_PATH export TNS_ADMIN export DISPLAY export XAUTHORITY export ORACLE_SID env | grep $ORACLE_HOME env | grep $ORACLE_SID uname -a
When I do[oracle@sam ~]$ . .profile LD_LIBRARY_PATH=/u01/oracle/10g/PROD/lib:/u01/oracle/10g/PROD/network/lib TNS_ADMIN=/u01/oracle/10g/PROD/network/admin PATH=/u01/oracle/10g/PROD/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin ORACLE_HOME=/u01/oracle/10g/PROD LD_LIBRARY_PATH=/u01/oracle/10g/PROD/lib:/u01/oracle/10g/PROD/network/lib ORACLE_SID=PROD TNS_ADMIN=/u01/oracle/10g/PROD/network/admin PATH=/u01/oracle/10g/PROD/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin ORACLE_HOME=/u01/oracle/10g/PROD Linux sam 2.6.9-42.0.0.0.1.ELsmp #1 SMP Sun Oct 15 14:02:40 PDT 2006 i686 i686 i386 GNU/Linux
Can someone help me out here. Please let me know if you need further information, I have posted.[oracle@sam ~]$ sqlplus / as sysdba -bash: sqlplus: command not found
Thanks for the help.
-SamORACLE_HOME=/home/Oracle/Oracle/product/10.2.0/Db_1
Export ORACLE_HOME
PATH = $ORACLE_HOME/bin: $PATH
export PATH -
Missing ORACLE_HOME, SQLPLUS - bash: sqlplus: command not found
OK, I'm a newbie, but a real difficulty with my G 10 DB I had implemented on Unix Solaris, but someone has been messing around with it, and now I can't see ORACLE_HOME, ORACLE_BASE and ORACLE_SID, they return all empty when I try to 'echo' of each.
I realize I should have initially he set in Bash_profile, but now is too late.
So, how can I set them back to the top, I can't get SQLPLUS / AS SYSDBA... bash: sqlplus: command not found
I tried to reset and to export but still does not work.
I got the ORACLE_BASE as:
Training:/export/home/training/product/10.2.0/Db_1:N
but, can't seem to define three variables to launch SQLPLUS, any ideas what I am doing wrong?
Tried messing around to reset but nothing works, it's the current state of things:
env
SSH_TTY = / dev/pts/3
USER = training
ORACLE_SID = training
ORACLE_BASE = / oracle/app
PATH = / usr/sbin: / usr/bin
PWD=/export/home/training/product/10.2.0/Db_1/bin
TZ = Eire
Ps1 = \e [33m\h\e [31 m-\u-\e [33m\W/\e [31 m-$\e [32 m]]]]
SHLVL = 3
HOME = / export/home/training
LOGNAME = training
ORACLE_HOME=/Oracle/app/product/10.2.0
Can someone help me, really need a step by step guide to set these back up correctly.
Thank youORACLE_HOME=/export/home/training/product/10.2.0/Db_1
$PATH = path: $ORACLE_HOME/bin
export ORACLE_HOME PATH -
COMMAND NOT FOUND - ORACLE GRID
Hi all
While typing in the mentioned order, I received the command not found below. I wonder what could be the reason. I installed ORACLE GRID on my test server. Also, feel free to check the output of bash_profile for grid below: -.
[grid@storage Desktop] $ sqlplus / as sysdba
bash: sqlplus: command not found
asmca $ [grid@storage Desktop]
bash: asmca: command not found
[grid@storage Desktop] $ lsnrctl status
bash: lsnrctl: command not found
[grid@storage Desktop] $
[grid@storage Desktop] $ vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
If [~/.bashrc - f]; then
. ~/.bashrc
FI
# Specific programs startup and user environment
$PATH = path: $HOME/bin
export PATH
ORACLE_SID = + ASM; export ORACLE_SID
JAVA_HOME = / usr/local/java. Export JAVA_HOME
ORACLE_BASE = / u01/app/grid; export ORACLE_BASE
ORACLE_HOME=/U01/app/11.2.0/grid; Export ORACLE_HOME
ORACLE_TERM = xterm; export ORACLE_TERM
NLS_DATE_FORMAT = 'HH24:MI:SS OF MON-DD-YYYY "; Export NLS_DATE_FORMAT
TNS_ADMIN = $ORACLE_HOME/network/admin; Export TNS_ADMIN
ORA_NLS11 = $ORACLE_HOME/nls/data; export ORA_NLS11
Path=.:${JAVA_HOME}/bin:${path}:$Home/bin:$ORACLE_HOME/bin
PATH = ${PATH}: / usr/bin: / bin: / usr/bin / X 11: / usr/local/bin
PATH = ${PATH}: / u01/app/common/oracle/bin
export PATH
LD_LIBRARY_PATH = $ORACLE_HOME/lib
LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}: $ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}: / lib: / usr/lib: / usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH = $ORACLE_HOME/JRE
CLASSPATH = ${CLASSPATH}: $ORACLE_HOME/jlib
CLASSPATH = ${CLASSPATH}: $ORACLE_HOME/rdbms/jlib
CLASSPATH = ${CLASSPATH}: $ORACLE_HOME/network/jlib
Export CLASSPATH
THREADS_FLAG = native; export THREADS_FLAG
Export = TEMP/tmp
export TMPDIR = / tmp
umask 022
You should also check the USER ORACLE .bash_profile OUTPUT as well. The following is an OUTPUT
[oracle@storage ~] $ vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
If [~/.bashrc - f]; then
. ~/.bashrc
FI
# Specific programs startup and user environment
$PATH = path: $HOME/bin
export PATH
ORACLE_SID = orcl; export ORACLE_SID
ORACLE_UNQNAME = orcl; export ORACLE_UNQNAME
JAVA_HOME = / usr/local/java. Export JAVA_HOME
ORACLE_BASE = / u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/Db_1; Export ORACLE_HOME
ORACLE_TERM = xterm; export ORACLE_TERM
NLS_DATE_FORMAT = 'HH24:MI:SS OF MON-DD-YYYY "; Export NLS_DATE_FORMAT
TNS_ADMIN = $ORACLE_HOME/network/admin; Export TNS_ADMIN
ORA_NLS11 = $ORACLE_HOME/nls/data; export ORA_NLS11
Path=.:${JAVA_HOME}/bin:${path}:$Home/bin:$ORACLE_HOME/bin
PATH = ${PATH}: / usr/bin: / bin: / usr/bin / X 11: / usr/local/bin
PATH = ${PATH}: / u01/app/common/oracle/bin
export PATH
LD_LIBRARY_PATH = $ORACLE_HOME/lib
LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}: $ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}: / lib: / usr/lib: / usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH = $ORACLE_HOME/JRE
CLASSPATH = ${CLASSPATH}: $ORACLE_HOME/jlib
CLASSPATH = ${CLASSPATH}: $ORACLE_HOME/rdbms/jlib
CLASSPATH = ${CLASSPATH}: $ORACLE_HOME/network/jlib
Export CLASSPATH
THREADS_FLAG = native; export THREADS_FLAG
Export = TEMP/tmp
export TMPDIR = / tmp
umask 022
PROBLEM has BEEN SOLVED NOW by tuning in ORACLE ENTERPRISE LINUX 6.5 (making the new facility). I want to especially thank you Aman.... for his great support and advice. Also be sure to check the blog that I have prepared during installation.
Blog URL: Setup Guide of grid complete Oracle 11 g on Oracle Enterprise Linux 6.5
In order to perform the complete Oracle with the Installation of the grid. Follow the mentioned below of the measures accordingly.
1 install Oracle Enterprise Linux 6.5 (if you have already installed OS then follow step 2)
2 oracle 11 g with Installation of the rack on Oracle Enterprise Linux 6.5 (part of the Configuration)
3 prepare the disk to ASM DISK using ASMLib
4. infrastructure installation oracle Grid (DATA of GROUP of DISKS ASM creation)5. using creation of GROUP of DISKS ASM FRA ASMCA (ASM Configuration Wizard)
-
PL/SQL in Sql Developer 4 script, works not sqlplus command line.
Hello guys, Xev here.
I hope I meet new people there into that in this space. I hope this is the appropriate space to ask this, I see that others have asked about sqlplus and they where permitted to post...
I have a pl/sql script that runs in sql developer 4, but the exact same script will not run in the sqlplus command line?
When I run the script, it gives me this, but as you can see with this script that works fine with sql developer, he is not running sqlplus command line.
ERROR at line 3:
ORA-06550: line 3, column 28:
PLS-00201: identifier 'DYNAMIC_COUNTS' must be declared.
ORA-06550: line 3, column 4:
PL/SQL: Ignored Element
ORA-06550: line 39, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 39, column 1:
PL/SQL: Statement ignored
ORA-06550: line 41, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 41, column 1:
PL/SQL: Statement ignored
ORA-06550: line 43, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 43, column 1:
PL/SQL: Statement ignored
ORA-06550: line 45, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 45, column 1:
PL/SQL: Statement ignored
ORA-06550: line 82, column 15:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 82, column 3:
PL/SQL: SQL statement ignored
Here is the script I use... You define a type of thing in the sqlplus command line?
Set serveroutput size unlimited
run the DBMS_OUTPUT. ACTIVATE (buffer_size = > NULL);
DECLARE
TYPE nt_tab IS TABLE OF dynamic_counts % ROWTYPE;
v_nttab nt_tab: = nt_tab();
FND_LOOK INTEGER.
v_incr NUMBER: = 0;
------------------------------------------------------------------------------------------------------------------------
BEGIN
FOR t IN (SELECT master, table_name, column_name
From all_tab_columns
Owner WHERE = UPPER ('& SCHEMA_NAME'))
------------------------------------------------------------------------------------------------------------------------
LOOP
BEGIN
EXECUTE IMMEDIATE ' with an ACE (select case when REGEXP_LIKE (' | t.column_name |))
-This search 1 letter and 12 figures-
', "^ ([[: alpha:]] |) [[: alpha:]] ({3}) [0-9] {12} $")
then "match"
another "no matches found" end up as output of ' | t.Owner | '.' || t.table_name | ')
Select count (*) in a where a.output = "Match Found" clause '
IN FND_LOOK;
------------------------------------------------------------------------------------------------------------------------
IF FND_LOOK > 0 THEN
v_incr: = v_incr + 1;
v_nttab. EXTEND;
v_nttab (v_incr) .t_owner: = t.owner;
v_nttab (v_incr) .t_table_name: = t.table_name;
v_nttab (v_incr) .t_column_name: = t.column_name;
v_nttab (v_incr) .fnd_govids: = FND_LOOK;
END IF;
------------------------------------------------------------------------------------------------------------------------
/ * This is for DBMS output, thus we have 2 different ways, one can see the results in the table dynamic_counts
and in the dbms_output
*/
IF FND_LOOK > 0 THEN
Dbms_output.put_line (t.owner |) '.' || t.table_name | ' ' || t.column_name | ' ' || FND_LOOK);
END IF;
------------------------------------------------------------------------------------------------------------------------
/ * Exception Handeling * /.
EXCEPTION
WHILE OTHERS
THEN
Dbms_output.put_line)
"Generic error".
|| t.column_name
|| "from".
|| t.Owner
|| '.'
|| t.table_name);
END;
END LOOP;
------------------------------------------------------------------------------------------------------------------------
FORALL i IN 1.v_nttab. COUNTY
INSERT INTO dynamic_counts (t_owner,
t_table_name,
t_column_name,
fnd_govids)
VALUES (v_nttab (i) .t_owner,
v_nttab (i) .t_table_name,
v_nttab (i) .t_column_name,
v_nttab (i) .fnd_govids);
COMMIT;
END;
/
Are you sure that you are connected to the database to the same user with both clients?
-
Not able to access sqlplus command-line linux for the new user added
Hi all
We have a strange problem with a new user of linux Redhat , trying to to connect to Oracle 10 g from the command line and would like any suggestions you have.
-other users are able to connect via sqlplus fine to their respective Oracle accounts, both for the new user account.
-I know the user and the password works because we can connect through Oracle SQL Developer from a terminal Windows.
-----
The monitoring of symptoms:
Since terminal linux+:
[user@server]$ sqlplus
Error Initializing SQL 6 * more
SP1 file < lang > .msb not found message
SP2-0750: you may need to set ORACLE_HOME in your Oracle software directory
[user@server]$ echo $ORACLE_HOME
/ opt/oracle/10 g
[user@server]$ echo $ORACLE_SID
~ also define as in other users without db connection problems
[user@server]$ pico * .bash_profile]
~ the value as in other users without db connection problems
[user@server]$ testconnection.pl perl
Series of tests in connection...
ORA_HOME: "/ opt/oracle / 10g.
AMERICAN
DBI connect('local.domain.name','db_username',...) failed: ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS parameters etc.) to the line /www/testconnection.pl 21
has failed: ERROR OCIEnvNlsCreate (check the ORACLE_HOME and NLS parameters etc).
[user@server]$ pico testconnection.pl
! / usr/bin/perl
Use DBI;
$this_var [0] = "dbi:Oracle:local.domain.name";
$this_var [1] = 'db_username ';
$this_var [2] = 'db_password ';
print 'Test Run of connection...\n\n';
print ' ORA_HOME: '$ENV {ORACLE_HOME}' \n ";
print ' NLS_LANG: '$ENV {NLS_LANG}' \n ";
Print "ORA_NLS: '$ENV {ORA_NLS}' \n ';"
Print "\n\n";
#connect DB
$dbh = DBI-> connect ($this_var [0], $this_var [1] $this_var [2]);
{if ($DBH)}
Print "OK \n";
$dbh-> disconnect;
}
else {}
Print "failed: $DBI: errstr\n";
}
Thanks for your help!>
[user@server]$ ls - lt /opt/oracle/10g/sqlplus/mesg/sp*.msb
-rw - r - 1 oracle oinstall 31744 Sep 2005 1 /opt/oracle/10g/sqlplus/mesg/sp2us.msb
-rw - r - 1 oracle oinstall 11776 Sep 2005 1 /opt/oracle/10g/sqlplus/mesg/sp1us.msb
>It seems that if you have a permissions problem. If your username is not a member of the oinstall group, he or she has no access to the necessary sql * more files. I recommend you read MOS 420083.1 Note for a more in-depth discussion to set the file permissions on the Oracle home.
-
Out of the sqlplus invites if file not found
I often spend my shell scripts .sql files. If the .sql file is not present, then connects to the prompt command sql, sqlplus command but stays there saying file not found.
Is it possible I can do sqlplus output if the file is not found.
In my opinion, one of the option should be by specifying a condition in the .sql file.Hello
Thorny problem! WHENEVER the OSERROR EXIT is the right order, but where you put it?
If foo.sql does not exist, then clearly you can not put it in foo.sql.
Even putting login.sql doesn't seem to work.What you can do is to write a script that you know will exist and always run as to start your actual script.
For example, you can write a script called try_to_run.sql, like this:WHENEVER OSERROR EXIT @&1
Pass the name of your real as script & 1, like this:
sqlplus scott/tiger@dbanme @try_to_run real_script
or, if real_script.sql accepts arguments:
sqlplus scott/tiger@dbanme @try_to_run "real_script arg1 arg2 arg3"
-
I extracted to the terminal linux firefox in my own repertoire and you try to run the executable file called firefox. But he's saying "command not found".
You seem to have 64-bit Linux because Linux versions served on mozilla.org are 32-bit.
FTP://FTP.Mozilla.org/pub/Firefox/releases/21.0/Linux-x86_64/
-
Identification of customer's Windows 7 NFS UID GID information
I am trying to connect to the Windows 7 Client NFS on a server running on a computer (VxWorks) NFS. I am able to properly connect Client NFS software by a 3rd party on the NFS server. However, when I use the Client for NFS provided by Windows 7, I am unable to connect. The \\ip address\share Z: mount"command fails with the error code"the path not found network ". I can't do a ping of the computer running the NFS server.
The NFS Client operating system: Windows 7 Ultimate, 64-bit
Data captured by Wireshark
MOUNT V1 EXPORT call 3rd party client
Identification information Flavor: AUTH_UNIX (1)
Length: 32
Stamp: 0xc7065970Machine name: PC
UID: 1000
GID: 1000MOUNT V1 EXPORT appeal of the NFS client
Identification information Flavor: AUTH_NULL (0)
Length: 0It seems that the credentials of NFS Client are not correct. How can I change the flavor of AUTH_UNIX and the UID and GID to 1000?
Hello VDAEMP,
As Eddie and Sudarshan has said, the Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the public IT pro TechNet forums below:
TechNet - Windows Server
Thank you -
Hi Experts,
We load data from .txt files in Linux server into a table.
Scenario runs perfectly when running Windows ODI GUI (on linux agent.we have two agents who perform one is windows and Linux).When we try to run it from the command line using startscen.bat getting following error.
ODI-1227: SrcSet0 (load) task fails on the source FILES FILE_SERVER connections.
Caused by: java.sql.SQLException: ODI-40438: file not found: /loadfiles/Test/xyz.txt
By this mistake if we conclude that this file may not exist... But it works well to GUI.
Infact we have given 777 permissions to file.
Ideas please share...
Concerning
PrakashV
Hi all
It works very well by adding the URL of the AGENT in a syntax such as startsen
StartScen.bat FILE_TO_ORACLE 001 GLOBAL-NAME = OracleDIAgent3-AGENT_URL =http://10.64.165.73:20912 / oraclediagent
Maybe you are looking for
-
Hello I have a (probably stupid!) question: I am acquiring data with a PCI-6281. I want to measure is a tension in the scale of the nV. But if my values are larger than 10nV, my software does not record the correct value. I know that the for my card
-
HP Pavilion dm4-1060us of fingerprint reader problem
Hi, I've recently messed around with the path under system variables setting (computer Start > R.Click > properties > advanced system settings > Environment Variables) and now I can't connect using my fingerprint reader. If someone could tell me the
-
Bravo for the leather case!
What about the belt leather Holster? This tab is the best thing since sliced bread and the touchstone in my opinion. I can say that Palm got at least one thing right...
-
IE 8 problem in Win 7 Ultimate.
If I open more than 4-5 tabs in internet Explorer 8.0 in my Windows 7 Ultimate System, after some time automatically its does not respond and I have to close all tabs in IE... Please correct.
-
Advice needed on the upgrade of the OS
Hello. I have an Inspiron 5759 running win 10 Home 64 bit... I have an ISO of Windows 10 education of Dreamspark. I'm in two minds and would appreciate some advice. Firstly, I would like to completely reformat the hard drive and perform a clean insta