Solved

Oracle TWO_TASK setting and default database logon

Posted on 2001-07-31
6
2,522 Views
Last Modified: 2012-06-27
Hi,

We are attempting to configure our application with a dedicated Oracle 8.0 database server on a separate Solaris 2.7 host.

We've set the TWO_TASK environment variable to the separate alias name configured in the tnsnames.ora file, and it works fine. All connections are diverted to the dedicated database server.

The problem is that the default username and password logon are disabled as soon as TWO_TASK is set.  Hence, all the supporting shell scripts which use default logon in the form "sqlplus /", or "sqlplus -s /" now fail.  Default logon has been used extensively in our application environment, so this is a major hurdle.

Any suggestions or tips that don't require major rework of the shell scripts would be most welcome.

Thanks

Phillip Prince
0
Comment
Question by:phillp
6 Comments
 
LVL 3

Accepted Solution

by:
ramkb earned 75 total points
ID: 6338520


The TWO_TASK variable is set so that you can connect to a database thro' Net8 listener without specifying a connect string.

Unless this is your requirement, you need not use TWO_TASK to connect to your database in the first place.  Instead set the ORACLE_SID in your user's .profile.  This is commonly the way to connect locally from the server in which your database is running.

If you have your TWO_TASK variable set and try connecting using OS authentication (/ or OPS$USER), Oracle cannot verify your OS authentication (in Unix member of DBA group) since you are connecting thro' Net8 at this point.
You should then Unset TWO_TASK everytime before you connect using O/S Authentication (and use ORACLE_SID to point to your DB).

Hope this helps..
- Ramesh
0
 
LVL 2

Expert Comment

by:Kong
ID: 6339066
That's right, good point Ramesh. So before calling the shell scripts:

unset TWO_TASK
export ORACLE_SID=yoursid

Then run the shell scripts as per usual.
0
 

Expert Comment

by:johnnyce
ID: 6339129
Hi, Philip,

Perhaps:

export ORACLE_SID=$TWO_TASK
unset TWO_TASK
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 6

Expert Comment

by:Mindphaser
ID: 7038219
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7055626
Recommended disposition:

    Accept ramkb's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7056957
Thanks, Dan.
I finalized this today and will monitor it in the event an adjustment is needed.
Moondancer - EE Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now