Solved

Oracle TWO_TASK setting and default database logon

Posted on 2001-07-31
6
2,787 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

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ā€¦
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 with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

635 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