Sqlplus is not working
Hi;
I'm trying to to work with sqlplus form a Red Hat Enterprise Linux ES release 4 (Nahant Update 7) 2.6.9 78.ELsmp server. The problem is I can not get response once I type sqllplus; or sqlplus / as sysadmin, or sqlplus /nolog. Previos to call sqlplus I do export ORACLE_HOME and ORACLE_SID.
Any idea what's happenning.
Thanks
ANG
user5248437 wrote:
here is what I'm doing.
[oracle@PRODSERVDB1 ~]$ sqlplus
After that, nothing happens. The cursor remains in the same position, but it doesn't given any error. I cancel the process thru Ctrl C.Type the command alias to check whether sqlplus have been aliased (many of us alias it and run it via rlwrap ) - could be incorrectly aliased.
Run it by specifying the actual executable. But before you do, confirm the executable is okay. Use "+file $ORACLE_HOME/bin/sqlplus+" and see what it says. If its looks okay, then execute it using the full path too.
Similar Messages
-
Sqlplus is not working after oracle 10g client installatio on linux server
Him
jsut now i installed oracle 10.2.0.1 client version in one my linux server. after successfully installation sqlplus is not working . could you please chekc and let me know what is the problem? below are my .profile details.
# Set up the shell variables:
EDITOR=vi
export EDITOR
### Set the umask
umask 022
### Set ulimit
#ulimit -u 16384
#ulimit -n 65536
### Set Oracle Environment
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/client_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export LIB_PATH=$ORACLE_HOME/lib
export ORATAB=/etc/oratab
export NLS_LANG=american_america.we8iso8859p1
export THREADS_FLAG=native
echo ' '
echo 'Oracle 10G environment has been setup'
echo 'Export the ORACLE_SID to target database before connecting'
echo ' '841731 wrote:
Him
jsut now i installed oracle 10.2.0.1 client version in one my linux server. after successfully installation sqlplus is not working . could you please chekc and let me know what is the problem? below are my .profile details.
# Set up the shell variables:
EDITOR=vi
export EDITOR
### Set the umask
umask 022
### Set ulimit
#ulimit -u 16384
#ulimit -n 65536
### Set Oracle Environment
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/client_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export LIB_PATH=$ORACLE_HOME/lib
export ORATAB=/etc/oratab
export NLS_LANG=american_america.we8iso8859p1
export THREADS_FLAG=native
echo ' '
echo 'Oracle 10G environment has been setup'
echo 'Export the ORACLE_SID to target database before connecting'
echo ' '" sqlplus is not working" is not an actionable error message. Unfortunately, you didn't show us what happens when you try to execute sqlplus.
Essentially, what you've done is the equivalent of 'here's a picture of my garage. Why won't my car start?' -
Lsnrctl and sqlplus do not work after installation
I install Oracle 10g on my Linux, but it does not work. For example when run lsnrctl or sqlplus, nothing happens. Any idea?
Hi,
Create a bash profile .bash_profile in your home path as follows:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/u01/oracle10g
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=TESTDB
Save this setting and run this file first time
$. .bash_profile
Once you run this I hope sqlplus should work provided you supply correct path and directories names to this file.
Use netca to recreate your listener and start it.
$lsnrctl start
$lsnrctl status
Hope it will help.
Best regards,
Rafi.
http://rafioracledba.blogspot.com -
Now the sqlplus is not working
C:\>sqlplus "/ as sysdba"
returns
ERROR:
ORA-01031: insufficient privileges
do I not have to give db name there ???
Please help me. I need this database up and running as soon as possible.
NICKwhich user are you connected with ?
Fred -
JDBC ok but SQLPLUS does not work
Hi all,
I created a java app that can connected to a Oracle DB with JDBC, however, when I try to get connected to my DB using the SLQPLU I laways get this error:
[oracle@ipsm-sn01 ~]$ sqlplus myuser/mypass@orcl
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
The SID is properly exported:
export ORACLE_SID=orcl
The JDBC url looks like:
jdbc.url=jdbc:oracle:thin:@localhost:1521:orcl
jdbc.username=myuser
jdbc.password=mypass
I have read a lot of entries about a file named TNSNAMES.ORA, I have no such file set; but the java app has been running for months without it, so I think that's not the root cause.
Thanks in advanced.
Edited by: user7761672 on Sep 20, 2010 8:20 AMuser7761672 wrote:
I have read a lot of entries about a file named TNSNAMES.ORA, I have no such file set; but the java app has been running for months without it, so I think that's not the root cause.
Thanks in advanced.If you are to use a SQL*Plus on your desktop, the TNSNAMES.ORA is required. I think the reason why you are not getting any issue at all when you are running it thru java app is because the java app is doing that for you creating an image of TNSNAMES.ORA or the likes of it thru some interfaces to connect to the database. An example of this is our application user. They don't have any TNSNAMES.ORA installed on their PC when they run our inhouse apps connected to the oracle database.
. -
Sqlplus is not working in oracle client machine.
In one of the application server on which Oracle client is installed, While login thru unix shell script im getting below error.
"Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory "
/u/testuser>cat .profile
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:.
export PATH
stty erase '^?'
PS1='$PWD>'
export LD_LIBRARY_PATH=/oracle_home/x86/product/10.2.0/lib
export ORACLE_HOME=/oracle_home/x86/product/10.2.0
PATH=$PATH:/usr/bin:/usr/ucb:/etc:.:.:/oracle_home/x86/product/10.2.0/bin
export PATH
export TNS_ADMIN=/u/testuser
CLASSPATH=.:/oracle_home/x86/product/10.2.0/jdbc/lib/classes12.jar
export CLASSPATH
alpha=/mydir/var/alpha/proj/logs//u/testuser>
Thanks in advance.>
export LD_LIBRARY_PATH=/oracle_home/x86/product/10.2.0/lib
export ORACLE_HOME=/oracle_home/x86/product/10.2.0Why don't you:
export ORACLE_HOME=/whatever
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
? -
Sqlplus can connect but can not work!
I have finished an installing of an Oracle10R2 on the OEL5.0 system. All run well except that the sqlplus can not work.I install it once more, but the results are same. What is the problem?
[oracle@localhost database]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Fri May 30 15:10:58 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initorcl.ora'
SQL>
Message was edited by:
frank.qian[root@localhost admin]# whoami
root
[root@localhost admin]# set | grep -i ora
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
LOGNAME=oracle
MAIL=/var/spool/mail/oracle
OLDPWD=//u01/app/oracle/product/10.2.0/db_1/dbs
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_SID=orcl
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin:/u01/app/oracle/product/10.2.0/db_1/bin
PWD=//u01/app/oracle/product/10.2.0/db_1/network/admin
USER=oracle
USERNAME=oracle
[root@localhost admin]# la -l $ORACLE_HOME/bin/oracle
bash: la: command not found
[root@localhost admin]# ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle oinstall 93362188 May 30 14:56 /u01/app/oracle/product/10.2.0/db_1/bin/oracle
[root@localhost admin]# cat $ORACLE_HOME/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
[root@localhost admin]# cat $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl2)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
[root@localhost admin]# ls -l $ORACLE_HOME/dbs
total 20784
-rw-r----- 1 oracle oinstall 168 May 29 10:10 alert_orcl.log
-rw-r----- 1 oracle oinstall 1544 May 29 21:27 hc_orcl0.dat
-rw-r----- 1 oracle oinstall 1544 May 30 08:31 hc_orcl1.dat
-rw-r----- 1 oracle oinstall 1544 May 30 14:58 hc_orcl2.dat
-rw-r----- 1 oracle oinstall 1544 May 27 12:49 hc_orcl.dat
-rw-r----- 1 oracle oinstall 12920 May 3 2001 initdw.ora
-rw-r----- 1 oracle oinstall 8385 Sep 11 1998 init.ora
-rw-r----- 1 oracle oinstall 24 May 30 15:00 lkORCL2
-rw-r----- 1 oracle oinstall 1536 May 30 15:04 orapworcl2
-rw-r----- 1 oracle oinstall 7061504 May 29 22:24 snapcf_orcl0.f
-rw-r----- 1 oracle oinstall 7061504 May 30 10:52 snapcf_orcl1.f
-rw-r----- 1 oracle oinstall 7061504 May 30 18:56 snapcf_orcl2.f
-rw-r----- 1 oracle oinstall 2560 May 30 16:29 spfileorcl2.ora
[root@localhost admin]# ps -ef | grep lsnr
oracle 8371 1 0 14:58 ? 00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
root 18146 5097 0 20:58 pts/2 00:00:00 grep lsnr
[root@localhost admin]# ps -ef | grep lsnr
oracle 8371 1 0 14:58 ? 00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
root 18146 5097 0 20:58 pts/2 00:00:00 grep lsnr
[root@localhost admin]# ps -ef | grep ora
root 2581 2560 0 14:15 ? 00:00:00 hald-addon-storage: polling /dev/hda
oracle 3542 3485 0 14:17 ? 00:00:00 /usr/bin/gnome-session
oracle 3605 3542 0 14:17 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
oracle 3608 1 0 14:17 ? 00:00:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
oracle 3609 1 0 14:17 ? 00:00:00 /bin/dbus-daemon fork print-pid 4 print-address 6 session
oracle 3615 1 0 14:17 ? 00:00:00 /usr/libexec/gconfd-2 11
oracle 3618 1 0 14:17 ? 00:00:00 /usr/bin/gnome-keyring-daemon
oracle 3620 1 0 14:17 ? 00:00:01 /usr/libexec/gnome-settings-daemon
oracle 3635 1 0 14:17 ? 00:00:14 metacity --sm-client-id=default1
oracle 3639 1 0 14:17 ? 00:00:02 gnome-panel --sm-client-id default2
oracle 3641 1 0 14:17 ? 00:00:01 nautilus no-default-window sm-client-id default3
oracle 3645 1 0 14:17 ? 00:00:00 /usr/libexec/gnome-vfs-daemon
oracle 3649 1 0 14:17 ? 00:00:00 /usr/libexec/bonobo-activation-server ac-activate ior-output-fd=17
oracle 3652 1 0 14:17 ? 00:00:00 eggcups --sm-client-id default4
oracle 3655 1 0 14:17 ? 00:00:00 gnome-volume-manager --sm-client-id default5
oracle 3660 1 0 14:17 ? 00:00:00 bt-applet --sm-disable
oracle 3675 1 0 14:17 ? 00:00:00 /usr/bin/python -tt /usr/bin/puplet
oracle 3677 1 0 14:17 ? 00:00:00 /usr/libexec/gam_server
oracle 3684 1 0 14:17 ? 00:00:00 ./escd key_Inserted="/usr/bin/esc" on_Signal="/usr/bin/esc"
oracle 3687 1 0 14:17 ? 00:00:00 /usr/libexec/trashapplet oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory oaf-ior-fd=19
oracle 3689 1 0 14:17 ? 00:00:06 /usr/libexec/wnck-applet oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory oaf-ior-fd=25
oracle 3693 1 0 14:17 ? 00:00:00 /usr/libexec/mapping-daemon
oracle 3695 1 0 14:17 ? 00:00:00 nm-applet --sm-disable
oracle 3703 1 0 14:18 ? 00:00:00 pam-panel-icon --sm-client-id default0
oracle 3708 1 0 14:18 ? 00:00:01 gnome-power-manager
oracle 3712 1 0 14:18 ? 00:00:00 /usr/libexec/mixer_applet2 oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory oaf-ior-fd=23
oracle 3718 1 0 14:18 ? 00:00:01 /usr/bin/python -E /usr/bin/sealert -s
oracle 3728 1 0 14:18 ? 00:00:00 /usr/libexec/notification-area-applet oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory oaf-ior-fd=24
oracle 3730 1 0 14:18 ? 00:00:00 /usr/libexec/clock-applet oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory oaf-ior-fd=28
oracle 3766 1 0 14:18 ? 00:00:03 gnome-screensaver
oracle 3828 1 0 14:26 ? 00:00:09 gnome-terminal
oracle 3831 3828 0 14:26 ? 00:00:00 gnome-pty-helper
oracle 3832 3828 0 14:26 pts/1 00:00:00 bash
oracle 5067 3828 0 14:43 pts/2 00:00:00 bash
oracle 8371 1 0 14:58 ? 00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle 9663 1 0 15:04 pts/1 00:00:00 /u01/app/oracle/product/10.2.0/db_1/perl/bin/perl /u01/app/oracle/product/10.2.0/db_1/bin/emwd.pl dbconsole /u01/app/oracle/product/10.2.0/db_1/localhost.localdomain_orcl2/sysman/log/emdb.nohup
oracle 10827 9663 0 15:06 pts/1 00:00:12 /u01/app/oracle/product/10.2.0/db_1/bin/emagent
oracle 11211 1 0 15:07 pts/1 00:00:11 /u01/app/oracle/product/10.2.0/db_1/jdk/bin/java -Djava.awt.headless=true -Doracle.oc4j.localhome=/u01/app/oracle/product/10.2.0/db_1/sqlplus -Djava.security.properties=/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/config/jazn.security.props -jar /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/oc4j.jar -config /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/isqlplus/config/server.xml
oracle 11427 1 0 15:10 ? 00:00:00 /bin/sh /usr/lib/firefox-1.5.0.9/firefox
oracle 11450 11427 0 15:10 ? 00:00:00 /bin/sh /usr/lib/firefox-1.5.0.9/run-mozilla.sh /usr/lib/firefox-1.5.0.9/firefox-bin
oracle 11455 11450 2 15:10 ? 00:10:14 /usr/lib/firefox-1.5.0.9/firefox-bin
oracle 12851 1 0 15:29 ? 00:00:00 ora_pmon_orcl2
oracle 12853 1 0 15:29 ? 00:00:00 ora_psp0_orcl2
oracle 12855 1 0 15:29 ? 00:00:00 ora_mman_orcl2
oracle 12857 1 0 15:29 ? 00:00:00 ora_dbw0_orcl2
oracle 12859 1 0 15:29 ? 00:00:02 ora_lgwr_orcl2
oracle 12861 1 0 15:29 ? 00:00:00 ora_ckpt_orcl2
oracle 12863 1 0 15:29 ? 00:00:06 ora_smon_orcl2
oracle 12865 1 0 15:29 ? 00:00:00 ora_reco_orcl2
oracle 12867 1 0 15:29 ? 00:00:00 ora_cjq0_orcl2
oracle 12869 1 0 15:29 ? 00:00:02 ora_mmon_orcl2
oracle 12871 1 0 15:29 ? 00:00:00 ora_mmnl_orcl2
oracle 12873 1 0 15:29 ? 00:00:00 ora_d000_orcl2
oracle 12876 1 0 15:29 ? 00:00:00 ora_s000_orcl2
oracle 12884 1 0 15:29 ? 00:00:00 ora_rvwr_orcl2
oracle 12886 1 0 15:29 ? 00:00:00 ora_arc0_orcl2
oracle 12888 1 0 15:29 ? 00:00:00 ora_arc1_orcl2
oracle 12895 1 0 15:29 ? 00:00:00 ora_qmnc_orcl2
oracle 12966 1 0 15:29 ? 00:00:10 oracleorcl2 (LOCAL=NO)
oracle 12975 1 0 15:29 ? 00:00:02 oracleorcl2 (LOCAL=NO)
oracle 12978 1 0 15:29 ? 00:00:00 ora_q000_orcl2
oracle 12982 1 0 15:29 ? 00:00:00 ora_q002_orcl2
oracle 12989 9663 2 15:29 pts/1 00:08:04 /u01/app/oracle/product/10.2.0/db_1/jdk/bin/java -server -Xmx256M -XX:MaxPermSize=96m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -DORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 -Doracle.home=/u01/app/oracle/product/10.2.0/db_1/oc4j -Doracle.oc4j.localhome=/u01/app/oracle/product/10.2.0/db_1/localhost.localdomain_orcl2/sysman -DEMSTATE=/u01/app/oracle/product/10.2.0/db_1/localhost.localdomain_orcl2 -Doracle.j2ee.dont.use.memory.archive=true -Djava.protocol.handler.pkgs=HTTPClient -Doracle.security.jazn.config=/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl2/config/jazn.xml -Djava.security.policy=/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl2/config/java2.policy -Djava.security.properties=/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/config/jazn.security.props -DEMDROOT=/u01/app/oracle/product/10.2.0/db_1/localhost.localdomain_orcl2 -Dsysman.md5password=true -Drepapi.oracle.home=/u01/app/oracle/product/10.2.0/db_1 -Ddisable.checkForUpdate=true -Djava.awt.headless=true -jar /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/oc4j.jar -config /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl2/config/server.xml
oracle 13020 1 0 15:30 ? 00:00:01 oracleorcl2 (LOCAL=NO)
oracle 13028 1 0 15:30 ? 00:00:01 oracleorcl2 (LOCAL=NO)
oracle 13031 1 0 15:30 ? 00:00:09 oracleorcl2 (LOCAL=NO)
oracle 13148 1 0 15:32 ? 00:00:10 oracleorcl2 (LOCAL=NO)
oracle 16447 3832 0 18:50 pts/1 00:00:00 sqlplus
oracle 16448 16447 0 18:50 ? 00:00:00 oracleorcl2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 18165 1 14 21:00 ? 00:00:00 ora_j000_orcl2
root 18167 5097 0 21:00 pts/2 00:00:00 grep ora
[root@localhost admin]# tail /u01/app/oracle/admin/orcl/bdump/alert.log
tail: cannot open `/u01/app/oracle/admin/orcl/bdump/alert.log' for reading: No such file or directory
[root@localhost admin]# tail /u01/app/oracle/admin/orcl2/bdump/alert.log
tail: cannot open `/u01/app/oracle/admin/orcl2/bdump/alert.log' for reading: No such file or directory -
Sqlplus -prelim command is not working.
Hi ,
sqlplus -prelim command is not working for me. It is giving me the below error.
oracle@xyz: /app/oracle/product/10.2.0/bin $*sqlplus -prelim*
SQL*Plus: Release 10.2.0.3.0 - Production on Fri Aug 7 10:31:54 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter user-name: oracle
Enter password:
ERROR:
ORA-24300: bad value for mode.
I am solaris 5.10 and database is 10g.
Thanks
Naveen.what -prelim command?
sqlplus -help
SQL*Plus: Release 10.2.0.4.0 - Production
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Usage 1: sqlplus -H | -V
-H Displays the SQL*Plus version and the
usage help.
-V Displays the SQL*Plus version.
Usage 2: sqlplus [ [<option>] [<logon>] [<start>] ]
<option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
-C <version> Sets the compatibility of affected commands to the
version specified by <version>. The version has
the form "x.y[.z]". For example, -C 10.2.0
-L Attempts to log on just once, instead of
reprompting on error.
-M "<options>" Sets automatic HTML markup of output. The options
have the form:
HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
[ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
-R <level> Sets restricted mode to disable SQL*Plus commands
that interact with the file system. The level can
be 1, 2 or 3. The most restrictive is -R 3 which
disables all user commands interacting with the
file system.
-S Sets silent mode which suppresses the display of
the SQL*Plus banner, prompts, and echoing of
commands.
<logon> is: (<username>[/<password>][@<connect_identifier>] | /)
[AS SYSDBA | AS SYSOPER] | /NOLOG
Specifies the database account username, password and connect
identifier for the database connection. Without a connect
identifier, SQL*Plus connects to the default database.
The AS SYSDBA and AS SYSOPER options are database administration
privileges.
The /NOLOG option starts SQL*Plus without connecting to a
database.
<start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
Runs the specified SQL*Plus script from a web server (URL) or the
local file system (filename.ext) with specified parameters that
will be assigned to substitution variables in the script.
When SQL*Plus starts, and after CONNECT commands, the site profile
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
(e.g. login.sql in the working directory) are run. The files may
contain SQL*Plus commands.
Refer to the SQL*Plus User's Guide and Reference for more information. -
Sqlplus "/as sysdba" is not working
We created oinstall group & oracle user (group is oinstall) on Solaris 10, 64bit SPARC box. And installed oracle 10g release 2. From the UNIX box sqlplus "/as sysdba" is not working.
sqlplus
Enter user-name: sys as sysdba
Enter password:
is working fine.
What could be the problem? Please help.
Thanks,
PrasadFor any of a number of reasons, you do not have 'operating system authentication' enabled.
This setup is fairly well described here http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dba.htm#sthref149 -
GROUP BY is Not working in Reports Builder 9.0.4
I have test run a query from both Jdev & SQLplus.
It works fine, and I have used the GROUP BY in Reports before (that is what makes this so frustrating).
The query looks something like this:
SELECT
a.programid,
nvl(sum(b.fy06),0.00) sum06,
nvl(sum(b.fy07),0.00) sum07,
nvl(sum(b.fy06 + b.fy07),0.00) total
FROM
table1 a
left join table2 b on a.item_id = b.item_id
WHERE 1=1
GROUP BY rollup(a.programid)
As I mentioned this works fine from Jdev or sqlplus, but not when I run the report from Reports Builder 9.0.4 I get an error after the Param form runs and before the BeforeReport trigger.
The error reads as follows:
ORA-00937: not a single-group group function
SELECT ==> a.programid, nvl(sum ....the rest of the query....
Can anyone give me suggestions on what may be causing this, or preferably give any advice as to how to fix it.
Thanks for your time.Good Morning Everyone,
We have similar Warning Message, too.
We used Report Builder 10.1.2
In Toad, there is no problem like other.
If you have a chance, please share with us.
Thanks in advance -
Condition specified in expression 2 is not working as expected
I have an application variable that I'm setting in a page-level computation. It is conditional: it should only be (re) set when :request is not Delete, and when the application item is either null, or when a specific string is NOT contained in the application item. I have the condition type as PL/SQL, and am using both expression 1 and expression 2.
Expression 1:
nvl(:REQUEST,'DELETE') <> 'DELETE' (this condition is working)
Expression 2:
nvl(instr(:MD_Refresh_Tables, 'HDB_SITE'),0) < 1)
(this condition is not working. :MD_Refresh_Tables is the application item being
set. And I've checked out the SQL in sqlplus and it's doing what I think it is.
However, when MD_Refresh_Tables contains 'HDB_SITE', the computation is
still being made, which is problematic for how I want to use this variable,
because it then contains 'HDB_SITE' more than once.)
Am I not understanding how expression 1 and expression 2 are used in conjunction with each other?
thanks,
CarolCarol,
You start with a specific condition type. Depending on the type, it may require neither Expression 1 nor Expression 2, or it may require Expression 1 only or it may require both Expression 1 and Expression 2. The type of condition, i.e., its name, suggests which, if any, of those two fields would be required. If your condition type is PL/SQL Expression, you put the PL/SQL Expression in Expression 1 and leave Expression 2 empty.
Scott -
SAP* and DDIC password is not working in Cleint 000
Hi,
I have Installed ECC 6.0 IDES Server on Windows 2k3 with Oracle database. First time i was able to login to 000 client with SAP* (default pwd) and did some post installation steps. Now the password is not working.
I tried the following:
Go to cmd prompt.
Sqlplus /nolog
conn /as sysdba
sqlplus>UPDATE SAPSR3.usr02 set uflag=0 where mandt='000' and uflag=128;
All the SAP users were Unlocked.
Then i tried delete command.
sqlplus>DELETE SAPSR3.usr02 where mandt='000' and bname='SAP*';
it says " 0 rows deleted "
Parameter login/no_automatic_user_sapstar= 0 is set.
Then Restarted the SAP server and tried logging with password pass it says user and password incorrect.Hi,
As I have given in the earlier pls go through that link.
And also ...It is good practice to put back the automatic sapstar to 1 as this will not allow other to use same way as sap* /pass and log into the client.
The first thing is like create one more user in the 000 ,and also other super user incase if you have to use 000 with super user and have your own mechanism like have cutomised program and tcode with which you can activate 000 super user and use some thing like this...or it is only known to SAP BAsis Administrator.etc..
And also do not work on 000 for regular development or prd work make a copy of this client and start using them .
This has to be used only for Support pack other SAp related activities.
The first step after installation is to make a copy of these refrence clients.And start using them.
Secondly create the sap* usermaster in 000 and remove profiles .
And enable parameter login/no_automatic_user_sapstar to 1.
with this we are securing the super user from misuse.
Incase of emergency you need to delete the sap* user master from Oracle level then activate the prifile parameter and the loginto the 000 client using sap*/Pass.
Hope this helps.
Get back if you need more information.
Thanks. -
Help! Script that works in 8.1.7 does not work in 9.2.0
I have a generic hot backup script that runs well in our 8i environment where I source the username and password for SYS from a secured txt file. However I could not get the script to work in our recently installed 9.2.0 environment.
Below is an extract of the hot backup script:
# Set environment
. ${HOME}/BACKUP/${DBNAME}.env
CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
export CONNECT_STRING
#Define some commands and files
SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
TIME_STAMP=`date +"%d-%b-%Y"`
# Test for duplicate filenames
$SQLPLUS <<-EOF
var numfiles number;
BEGIN
SELECT count(*) into :numfiles
FROM dba_data_files a, dba_data_files b
WHERE a.file_name != b.file_name
AND SUBSTR(a.file_NAME, INSTR(a.file_name, '/', -1) + 1)
= SUBSTR(b.file_NAME, INSTR(b.file_name, '/', -1) + 1);
END;
exit :numfiles
EOF
FILE_ERROR=$?
echo "Number of duplicate files $FILE_ERROR"
if [ $FILE_ERROR -gt 0 ]; then
echo "Aborting, ... $FILE_ERROR duplicate filenames"
exit
fi
As per the extract above,
in our 8.1.7 environment,
(1) the command CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
will result in CONNECT_STRING=sys/xxxxxx@<sid>
(2) the command SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
will result in SQLPLUS=/usr/oracle/product/8.1.7/bin/sqlplus -s sys/xxxxxx@<sid>
(3) and when issue $SQLPLUS <<-EOF
it connects fine and execute the procedure successfully.
in Oracle 9.2.0,
(1) the command CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
works fine with result same as in 8.1.7 - CONNECT_STRING=sys/xxxxxx@<sid>
(2) the command SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
works fine with result SQLPLUS=/usr/oracle/product/9.2.0/bin/sqlplus -s sys/xxxxxx@<sid>
(3) However, when issue $SQLPLUS <<-EOF returns an error:
ERROR:
ORA-28009: connection to sys should be as sysdba or sysoper
How can I fix that??
Is it because of the username/password structure (sys/xxxxxx@<sid>)??
I would like to keep such username/password format if possible.
I have also tried to hard coded the username/password for variable SQLPLUS as:
SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -S '/ as sysdba'"
But it still doesn't work when issue $SQLPLUS, it returns the following:
Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
<logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
<start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
"-H" displays the SQL*Plus version banner and usage syntax
"-V" displays the SQL*Plus version banner
"-L" attempts log on just once
"-M <o>" uses HTML markup options <o>
"-R <n>" uses restricted mode <n>
"-S" uses silent mode
Any ideas as to how to have the script run in 9.2.0??
Your help is much appreciated.Hi, I tried CJs suggestion; however it still doesnt work for me.
I tried assigning the command line to a variable, I tried to log in directly from the command line, and both dont work (see below). What did I do wrong??
$ SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -S \"sys/xxxxxx@<sid> as sysdba\""
$ echo $SQLPLUS
/usr/oracle/product/9.2.0/bin/sqlplus -S "sys/xxxxxx@<sid> as sysdba"
$ $SQLPLUS
Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
<logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
<start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
"-H" displays the SQL*Plus version banner and usage syntax
"-V" displays the SQL*Plus version banner
"-L" attempts log on just once
"-M <o>" uses HTML markup options <o>
"-R <n>" uses restricted mode <n>
"-S" uses silent mode
$ sqlplus "sys/xxxxxx@<sid> as sysdba"
SQL*Plus: Release 9.2.0.4.0 - Production on Wed Mar 24 08:53:05 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-01031: insufficient privileges -
Script that works in 8.1.7 does not work in 9.2.0
I have a generic hot backup script that runs well in our 8i environment where I source the username and password for SYS from a secured txt file. However I could not get the script to work in our recently installed 9.2.0 environment.
Below is an extract of the hot backup script:
# Set environment
. ${HOME}/BACKUP/${DBNAME}.env
CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
export CONNECT_STRING
#Define some commands and files
SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
TIME_STAMP=`date +"%d-%b-%Y"`
# Test for duplicate filenames
$SQLPLUS <<-EOF
var numfiles number;
BEGIN
SELECT count(*) into :numfiles
FROM dba_data_files a, dba_data_files b
WHERE a.file_name != b.file_name
AND SUBSTR(a.file_NAME, INSTR(a.file_name, '/', -1) + 1)
= SUBSTR(b.file_NAME, INSTR(b.file_name, '/', -1) + 1);
END;
exit :numfiles
EOF
FILE_ERROR=$?
echo "Number of duplicate files $FILE_ERROR"
if [ $FILE_ERROR -gt 0 ]; then
echo "Aborting, ... $FILE_ERROR duplicate filenames"
exit
fi
As per the extract above,
in our 8.1.7 environment,
(1) the command CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
will result in CONNECT_STRING=sys/xxxxxx@<sid>
(2) the command SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
will result in SQLPLUS=/usr/oracle/product/8.1.7/bin/sqlplus -s sys/xxxxxx@<sid>
(3) and when issue $SQLPLUS <<-EOF
it connects fine and execute the procedure successfully.
in Oracle 9.2.0,
(1) the command CONNECT_STRING=`${HOME}/admin/Util/syspass.sh sys $DBNAME`
works fine with result same as in 8.1.7 - CONNECT_STRING=sys/xxxxxx@<sid>
(2) the command SQLPLUS="${ORACLE_HOME}/bin/sqlplus -s ${CONNECT_STRING}"
works fine with result SQLPLUS=/usr/oracle/product/9.2.0/bin/sqlplus -s sys/xxxxxx@<sid>
(3) However, when issue $SQLPLUS <<-EOF returns an error:
ERROR:
ORA-28009: connection to sys should be as sysdba or sysoper
How can I fix that??
Is it because of the username/password structure (sys/xxxxxx@<sid>)??
I would like to keep such username/password format if possible.
I have also tried to hard coded the username/password for variable SQLPLUS as:
SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -S '/ as sysdba'"
But it still doesn't work when issue $SQLPLUS, it returns the following:
Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
<logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
<start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
"-H" displays the SQL*Plus version banner and usage syntax
"-V" displays the SQL*Plus version banner
"-L" attempts log on just once
"-M <o>" uses HTML markup options <o>
"-R <n>" uses restricted mode <n>
"-S" uses silent mode
Any ideas as to how to have the script run in 9.2.0??
Your help is much appreciated.My first comment is that even though you are using a secure encrypted text file, putting the SYS password on the command line can make the password available to anyone on the server who can perform a ps command:
shvec320 ECD2 /u01/home/oracle/cronscripts $ sqlplus mark/mark4s@dbnm
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Mar 24 16:47:17 2004
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production
SQL> !ps -ef | grep mark
oracle 25494 25078 0 16:47:17 pts/4 0:00 sqlplus mark/mark4s@dbnm
oracle 25497 25494 0 16:47:23 pts/4 0:00 grep mark
Consider putting the connect string in the SQL script:
sqlplus /nolog <<-EOF
connect ${CONNECT_STRING}
var numfiles number;
BEGIN
SELECT count(*) into :numfiles
FROM dba_data_files a, dba_data_files b
WHERE a.file_name != b.file_name
AND SUBSTR(a.file_NAME, INSTR(a.file_name, '/', -1) + 1)
= SUBSTR(b.file_NAME, INSTR(b.file_name, '/', -1) + 1);
END;
exit :numfiles
EOF
Starting in Oracle 9 (others will correct me if I am wrong) you cannot connect to the sys account without specifying as SYSDBA or SYSOPER.
My testing (9.2.0.3) resulted in your ORA-1013 using "sys/password@dbname as sysdba". Using "sys/password as sysdba" works just fine. I seem to remember if you want to use @dbname, you will need to use password file authentication instead of OS authentication.
My suggestion -if possible - is to use plain "connect / as sysdba" in your SQL Script and have ORACLE_HOME and ORACLE_SID set correctly in your environment (do it in ${HOME}/BACKUP/${DBNAME}.env) :
sqlplus /nolog <<-EOF
connect / as sysdba;
var numfiles number;
BEGIN
SELECT count(*) into :numfiles
FROM dba_data_files a, dba_data_files b
WHERE a.file_name != b.file_name
AND SUBSTR(a.file_NAME, INSTR(a.file_name, '/', -1) + 1)
= SUBSTR(b.file_NAME, INSTR(b.file_name, '/', -1) + 1);
END;
exit :numfiles
EOF
HTH -
Login button not working on Applicatin Express Login screen
Hi,
I'm trying to upgrade default apex version that comes with xe to apex 3.2.1. I've listed down the steps I followed to upgrade apex.
After following all the steps, I'm able to login to my application, however not able to login to apex workspace using url http://127.0.0.1:8080/apex/ as the login button is not working.
Also there is no image for Application Express on the top of the page. I did try http://127.0.0.1:8080/i/ and it returns list of images.
Below are the steps I followed to upgrade apex
1. Downloaded apex_3.2.1.zip to C:\Software
2. unzip apex_3.2.1.zip to C:\Software\apex
3. started command prompt and set these variables
set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server
set ORACLE_SID=xe
set ORACLE_PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin
set LD_LIBRARY_PATH=C:\oraclexe\app\oracle\product\10.2.0\server\lib
3.1 Shutdown the listener and job services
4.
sqlplus /nolog
CONNECT SYS as SYSDBA
@apexins SYSAUX SYSAUX TEMP /i/
5.
sqlplus /nolog
CONNECT SYS as SYSDBA
@apxchpwd
6.
Stopped and Started the Database, also the listener and job processes
7.
sqlplus /nolog
connect sys as sysdba
@apxldimg.sql c:\software
8.
sqlplus /nolog
connect sys as sysdba
exec dbms_xdb.setListenerLocalAccess (l_access => FALSE);
Any clue on where could I have gone wrong?
Thanks,
Hozy>
Any clue on where could I have gone wrong?
>
1. You forgot to run the apxldimg.sql script to update the images directory
http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/otn_install.htm#BHAJIGDA
3.3.5.2 Updating the Images Directory When Upgrading from a Previous Release
Regards,
Phiri
Maybe you are looking for
-
Posting with trans.type 200 not possible (No acquisition posted
When I am trying to retire an asset following error is throwing Posting with trans.type 200 not possible (No acquisition posted Please guide me accordingly naren
-
Keyboard slow., double typing
Also freezes and offers options for vowels. Need tto get rid of this. Anyone know whats going on? Thanx
-
Right Steps for Maintenance plan?
Hi, I want to create a maintenance plan in which it has : 1. Changing recovery models (SIMPLE and then back to FULL) 2. Reorganizing Indexes 3. Shrinking the database 4. Taking a FULL, DIFFERENTIAL & LOG backups. So, is this my correct order?? If not
-
Illustrator CS 6 makes copies of files when they are opened
This is not a view problem. Illustrator actually makes a file labelled "copy"everytime the particular file is opened. Each time it is opened, it makes another copy & tags a number on the end. It only happens with the occasional file, but once this ha
-
Limitations on using SQL/PLSQL Functions in Reports 6i/10g
Hi Gurus.. We have limitation on using TRIM, Regular Expressions, CASE Operator, Sub-query in cursor in Reports 6i/10g.. Could you please let us know all such limitations for Reports 6i/10g. Any reference document will be much more useful.. Any help