Solved

Oracle TWO_TASK setting and default database logon

Posted on 2001-07-31
6
2,611 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to recover a database from a user managed backup

830 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