Sqlplus issue..
Hi
when i try to connect to oracle 10g which is in a different unix box my sqlplus client is not able to look up the tnsnames.ora file.
when i copy the tnsnames and paste them in sqlplus command then i am able to connect.
can some one let me know how to make sqlplus read the tnsnames.ora and connect to the database.
thanks.
Zymson wrote:
Hi
when i copy the tnsnames and paste them in sqlplus command then i am able to connect.How do you paste tnsnames in sqlplus command ? sqlplus username/password@(Complete TNS Entry) ?
can you post the results for the following command...
echo $PATH
echo $TNS_ADMINyou may have to copy your TNSNames.ora file to $ORACLE_HOME/network/admin
If $TNS_ADMIN is not set then you may have to set it to
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
Similar Messages
-
Hello,
Recently I came across a weird issues using sqlplus, SELECT statement when typed in uppercase using MAX() function says "table or view does not exists"
e.g.
SELECT MAX(COLUMN_NAME) FROM TABLE_NAME;
When the above query typed with one lowercase character anywhere in the query then it works.
Basically, Oracle thinks it as a new query then executes it, but not when typed as above.
I'm using Oracle 11g Client and Oracle 10.2.0.5.0 as RDBMS server.
Any idea, what could be an issue?
Thx
KamSQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 1 11:02:24 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select * from dual;
D
X
SQL> select * from weird_table;
select * from weird_table
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> desc weird_table;
ERROR:
ORA-04043: object weird_table does not exist
SQL> desc dual;
Name Null? Type
DUMMY VARCHAR2(1)
SQL> Regards
Raj -
Folks
I am having very weird issue. Need your help/opinion on this.
I have 2 node cluster, Solaris 10, 10.2.0.3 with CRS bundle. Installation went fine. No issue at all.
Now on one of the node (Node2), I am having problem.
Issue is:
If I reboot machine, everything comes up fine. But I can't do "sqlplus / as sysdba" to ASM as well as Database instance.
It says connected to idle instance. ps -ef |grep smon shows that both instances are up and running (ASM and Database). Even crs_stat shows, everything is up. Even "shutdown abort" doesn't work.
Now, When I shutdown instance using srvctl. and then start it up using sqlplus , it works. I am able to so sqlplus. BUT crs_stat shows instance DOWN. Also, if I try to stop instance using srvctl, it DOESNOT work.
So bottom line is , I can use either srvctl OR sqlplus in order to manage instances on that node.
I saw post on internet from Mike Ault describing similar situation and some other note on these forums also, but there is no solution. Also those problems are related to 11g only.
Re: srvctl issue
www.toadworld.com/LinkClick.aspx?fileticket=Y2Pd9kF64Wg=&tabid=234
Does anyone have any idea?
I have similar setup on Test environment and everything is working fine without any issue
Thanks in advance
PGHi.
Maybe you can do a checklist :
- When you type : "sqlplus / as sysdba" what is the content of ORACLE_SID variable ?
- Check the healthy of CRS stack using crsctl check crc command.
- Check the OCR integrity (ocrcheck) .
Regards -
Hi,
I have a Oracle Server DB 11g Release 11.2.0.1.0 installed on my local pc. I've got only one instance (orcl).
When i try to run the command select * from idc_geraet with sqldeveloper i get the expected result, but if i run the same command with sqlplus i get an error saying that no rows are selected. I'm logged in at both with the same schema (scott). I've made a commit in sqldeveloper.
When i run the command select * from idc_person i get the expected result with both programms - sqlplus and sqldeveloper. How is that possible?
thanks for your help,
ArminHello!
I just found out that i forgott the commit. My PC was running in standby and i didn't end sql-developer, so i forgot that i hadn't made a commit
thank you -
Hi,
I have the below dos batch file which extracts some file value(always return some value) and trying to print this.but this giving me o/p as
ECHO is on.
Can any guys help me out on this urgently...
set lcl=
for /f %%i in ('sqlplus -s usr/pwd@tst
@D:\tst\Purge_Utility\qt_counter.sql') do set lcl=%lcl% %%i
echo %lcl%
regards
AbdulWahabHi,
This is the complete dos script,and the qt_counter.sql returns a value 100 which i am trying to display as a o/p.but the o/p comes as ECHO ON.
set lcl=
for /f %%i in ('sqlplus -s usr/pwd@tst @D:\tst\Purge_Utility\qt_counter.sql') do set lcl=%lcl% %%i
echo %lcl%
regards
AbdulWahab -
I have database running on Oracle 11.2.0.3 on Linux 5.5 64bit. Another server where I have installed Oracle Client 11.2.0.1 32-bit (x86). (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html).
But I can not do tnsping, I get segementation fault. Additionally, I can not to database using sqlplus <user>@SID. I get prompted for the password, then I am back the unix prompt again without any error.
For debugging, I installed 64bit version of the client, which can connect to database. I am using same version/copy of tnsnames.ora. No special character (^M) in the tnsnames.ora.
Any suggestions how do I get this fixed?
Thanks,
KPI figure I should update my findings on the resolution.
during Oracle 11.2.0.1 client installation, there was an error/warning message about oracle net configuration assistant unable to run. So, I had ignore it thinking its benign and created the tnsnames.ora file manually. On a hunch after 9 days of debugging, i decided to look into this warning message, and found some info in the ora32Inventory/logs/installAction-<date>.log. It had following error about java when running oracle net config.
INFO: # Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
INFO: # Problematic frame:
INFO: # C [libnnz11.so+0x3c35e]
So, I google the error, and after some research and reading, found an oracle patch to address this error:
ORA-24550: SQL*Plus 32-Bit Client May Crash On Linux X86-64 OS With AMD Processor [ID 1120724.1]
Patch info: 8670579 - DBBETA :NETCA/DBCA FAILED WITH HOTSPOT VIRTUAL MACHINE
Typically, this patch (8670579) is installed on Oracle RAC. however I tried on my app server (oracle client). It resolved my sqlplus issue and more importantly it resolve my application (Business Objects/BSAE) installation issue where it was unable to connect to oracle database using 11.2.0.1 client.
Cheers,
KP -
Oracle troubleshooting when I have no info in the alert log
Hello everyone,
I'm running Oracle 10g on Solaris 10. I performed a restore yesterday, and my DB instance was running smoothly. This morning I discovered that Oracle died on me "silently", that is, nothing was recorded in the alert log - the last entry in the alert log was the end of the restore.
No Oracle processes were running anymore on the machine, trying to log in via sqlplus issued the expected
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
The instance is running again after rebooting the machine.
Can I find clues about the crash, as the alert log hasn't anything for me?
Thank you,
AdrianThank you all for your ideas.
I looked in the /var/adm/messages (there's also /var/log/sysmsg which might be of some help) and found out that the machine was rebooted. Apparently, the Oracle instance hasn't been started properly afterwards.
The alert log mentions (before the crash) that 'alter database open resetlogs' was performed successfully, and I ran some applications after restore that accessed the DB - the instance was indeed running.
There is no other alert log (my attempts to bring up the DB the next day are recorded in the same file). -
Hi
How to take up Hot backups (On-line backup) in Oracle 10g Release 2 in Windows environment.
Pls give me the link or steps for do the hot back-ups.
ThanksI think you are test ENV?
Did you archive the current log file which i mentioned in the earlier post
if so and if you the archived log
Shutdown the DB
Rename the file you copied
move the D:\oradata\*.dbf(whihc was backed up by you)in the original directory and
from sqlplus issue
SQL>startup mount
SQL>recover database
this hould work
But make sure you have the backup before deleting/renaming the the file you backed up by HOTbackup -
Hyperion Installaion 11.1.1.3(error during configuration)
Hi All
I am Installing hyperion 11.1.1.3 on windows server2003 R2.I installed all the components individually Hyperion fondation first,essbase planning , FR then workspace and I created one schema after installing oracle 11g but when I try to configure the fondation first it asked me for database connection
Database-oracle
server-My computer server name(BoyazServaer)
port-1521
service name SID-orcl
username-system
password- my own password
After entering when I click next I am getting below error
"Error establishing socket to host and port:BoyazServer:1521:Reason connection refused connect.
I would really appreciate if anyone help me out.Please help me out I am in the middle of installation.
Thanks in advanceYou can check the listener status from command line.
lsnrctl status------------??
This is what I got when I entered lsnrc status
D:\app\Administrator\product\11.2.0\dbhome_1>cd..
D:\app\Administrator\product\11.2.0>;cd dbhome_2
D:\app\Administrator\product\11.2.0\dbhome_2>telnet 1521
Connecting To 1521...Could not open connection to the host, on port 23: Connect
failed.
D:\app\Administrator\product\11.2.0>;cd dbhome_3
D:\app\Administrator\product\11.2.0>;cd dbhome_4
D:\app\Administrator\product\11.2.0\dbhome_4>telnet 1521;
Connecting To 1521;...Could not open connection to the host, on port 23: Connect
failed
D:\app\Administrator\product\11.2.0>;cd dbhome_1
D:\app\Administrator\product\11.2.0\dbhome_1>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 06-AUG-2012 10:58
:57
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 05-AUG-2012 17:41:01
Uptime 0 days 17 hr. 18 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\Administrator\product\11.2.0\dbhome_1\network\a
dmin\listener.ora
Listener Log File c:\app\administrator\diag\tnslsnr\BoyazServer\listener
\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
If you receive
ORA-12541: TNS:no listener - Then the listener is not up and running.
*ORA-12514: TNS:listener does not currently know of service requested in connect - This can mean the listener is up and running but the database instance is not up.??
In the above I did not see see any TNS.Can you please tell what other commands to use to get the mentioned stmts
**If you don't get any error messages when logging in through SQLPLUS issue the following*
select status from v$instance;
If the database is up and running it shoud return OPEN.
If the database it OPEN then your issue lies elsewhere. ???
The status is open............
Please help me out what to do more to get this issue resoved.I would really appreciate everyone who is helping me out.
Thanks in advance -
Transportable tablespaces with Logical Standby
Does anyone know whether or not transportable tablespaces can be used in a Logical Standby environment? I know they can be used with a Physical Standby, and the documentation covers how to do this, but there's nothing about Logical Standby. This is Oracle 10.2.0.4/SLES 10.
Thanks.Using transportable tablespaces to a logical standby environment. Actually, there is a paragraph in the 10.2 Data Guard Concepts and Administration manual. I will summarize:
After creating the transportable tablespace export file on the source system, copy the datafiles to both the primary and logical standby systems.
On the dataguard logical standby, within SQLplus, issue SQL> alter session disable guard;
Import the tablespaces into the logical standby database
SQL> alter session enable guard;
Import the tablespaces into the primary database.
In 10.1, we imported the tablespaces into an environment with a physical standby and then converted the physical standby to a logical standby.
I tested the procedure for 10.2 and it seemed to work. Has anyone else done this and if so, are you aware of any issues? Like I said, the documentation is one very brief paragraph.
Thanks. -
"FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"
"FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"
as I can unblock a session in the graphical surroundings of administration of the BD 10g of OracleFrom experience with this problem since the blocked customer form has been coded not to wait for the updating session to complete then there is likely no waiter on the system now so you cannot find the blocking session.
What you need to do is determine what row the Form was going after then using SQLPlus issue an update on the row. If the blocking session has not yet committed then this update will wait. Now if you look for blocking sessions you will be able to find it and make a determination if the session should be killed or if someone needs to call the user and ask he or she to flip through their screens and get out of the blocking screen.
Applications screens written not to wait on currently being updated data need to also be written to expose the information necessary to identify the row(s) in question.
HTH -- Mark D Powell -- -
Please answer. how to search for files
Hi,
We need an integration with SAP. They send us files in the format: yyyymmddhhmiss.atv
For example we receive following files:
20050503101115.atv
20050504101115.atv
20050505101115.atv
So, we dont know how to search for all files with extensions ".atv" in the directory.
We are using PLSQL. Is there some way to resolve with UTL_FILE?
Any other suggestion?A possibility:
In sqlplus, issue a HOST command to list the files to a file:
ls *.atv > atv_dir.txt
Then use utl_file to read atv_dir.txt and parse it for the file names.
You could put the filenames in a pl/sql table and use that as loop control. -
Hello,
As I said you yesterday I want to create an analytic workspace containg a cube with 2 dimensions: products and time . Products is a dimension that have a source table organized as a hierarchy ie records contain idprodus and iprodusparent so I have to build a value based hierarchy . I built it and I set it is a value based hierarchy . But how I telll AWM relation is in hierarchy is a parent-child given by idprodus and idprodusparent?
Thanks in advance,
AurelHi Stuart,
Thanks for your interest . I want to ask something related to this .
How I am sure my query is using AW created ? I am sure in using MV -for relational case , ROLAP- quering fact table using sqlplus issuing an set autotrace on , and execution plan is displaying and it tells me it using MV ? But in case of MOLAP?
Thanks,
Aurel -
How to Get HP Drivers After (DIY) Installing Windows?
Series: How to Re-Install Windows when you don't have the Recovery Discs
Intro: What is an ISO? Why is it used?
Step 1 - Get the ISO - ISO Download Links
Step 2 - Burn the ISO to a DVD or USB
Step 3 - What to do with the ISO DVD/USB? Change the Boot Order
Step 4 - What to do After Windows is Installed? How to Get HP Drivers?
Step 4 - What to do After Windows is Installed? How to get HP Driver?
Winodws is Installed, Now What?
Once the installation is complete, you'll need to go to your HP Driver Page and download all of your drivers. Your wireless function may not work automatically with a fresh install. You may have to plug an Ethernet cable into the computer and into your router to connect to the internet initially, until you have downloaded your wireless driver.
The best way to use the HP Driver Page, is by putting in your product number ('P/N' found on the HP label on the bottom of the computer) and click Go, rather than the 'Detect my product - Find Now' option. Without an HP Recovery Disc version of Windows, the 'Detect my product' option is not likely to work properly.
Another important note: If you had to go all the way into BIOS and change the Boot Order to the DVD drive (or USB), you'll have to go back into BIOS at your convenience and change the Boot Order back to booting from the internal Hard Drive first. If you used the F9 Boot Order Menu, it only changes the Boot Order temporarily, for that one power on iteration.
If you have any questions, create a new post (How to Create a New Post - Video), copy and paste it's link into a private message to me, and I will respond on your threadNote down all the file names of the following queries first:
SELECT NAME FROM V$DATAFILE;
SELECT NAME FROM V$CONTROLFILE
SELECT NAME FROM V$TEMPFILE
SELECT VALUE FROM V$PARAMETER WHERE NAME = 'spfile'
If the last query doesn't show any file then copy $ORACLE_HOME/dbs/init<SID>.ora file.
After making the list in sqlplus issue:
SHUTDOWN IMMEDIATE
And now you can copy all of those files to some other location. Make sure you install same version of OS and Oracle to restore these files. It would be easy for you if you keep the same directory structure after reinstall and place all those files as they were earlier.
Daljit Singh -
Accepting UNIX variable in PLSQL block
Hi,
I wanted to send shell variable to a PL/SQL block in a SHELL script. ?How to achieve this?
I am using Korn Shell.
Thanks & Regards
LAKSHMISend the parameters to sqlplus and access them
================================
This call
================================
C:\Temp>sqlplus issues/issues@air @t.sql Parameter1
================================
Makes this
================================
SQL*Plus: Release 8.0.6.0.0 - Production on Mon May 6 12:48:54 2002
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
SQL> BEGIN
2 DBMS_OUTPUT.Put_Line ('HI &1');
3 END;
4 /
old 2: DBMS_OUTPUT.Put_Line ('HI &1');
new 2: DBMS_OUTPUT.Put_Line ('HI Parameter1');
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL>
SQL> /*
DOC>
DOC>set serveroutput on size 1000000
DOC>clear screen
DOC>@c:\temp\t.sql
DOC>
DOC>*/
SQL>
Maybe you are looking for
-
How to move my iTunes library from an external FAT32 drive
My music library is located on a FAT32 external drive that was created with a PC. It works just fine when I access the drive using iTunes on my Mac. Now, however, I would like to permanently move my library to a different external drive, which has be
-
Strange issues on OLAP univese based on Bex
I am posting some strange questions and this forum might have answers but any responses will helpme out here 1. Source System : The Bex query based universe object is displaying all source systems in BW, so everytime the Source Syetms object been pul
-
How can I run this java program? Please help.
I have jmf installed, sunone running , the file may be in the wrong directory. It is in some directory nowhere near the java lang dir. When I try to compile or build i cant. I'm off on a basic thing. here is the code. import javax.sound.midi.Inva
-
ABAP certification only for people using ECC 5.0 version and above
Hi all, I requested for the ABAP certification to SAP education india They said that only if we have experience in ECC 5.0 then only we are allowed Is it so..? i am applying for certification through our company. People working in 4.6 or 4.7 are not
-
Transfer Moto W755 contacts to Convoy 2 help request
Pulling my hair out trying to move my contacts from my old W755 to the Convoy 2 via Bluetooth. I have followed the instructions that I found for Convoy 2 with regard to pairing the two devices. All goes well until I get to the step for selecting th