Solved

Oracle TWO_TASK setting and default database logon

Posted on 2001-07-31
6
2,701 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
update using pipeline function 3 46
return value in based on value passed 6 49
format dd/mm/yyyy parameter 16 59
Oracle Errors 11 89
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
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.

734 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