# Just curious

**URL:** <https://forums.toadworld.com/t/just-curious/34342>\
**Category:** Toad for Oracle - Beta\
**Created:** [October 22, 2015, 8:38am UTC](https://forums.toadworld.com/t/just-curious/34342 "2015-10-22T08:38:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![crjohnso](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@crjohnso](https://forums.toadworld.com/u/crjohnso)\
**Post date:** [October 22, 2015, 8:38am UTC](https://forums.toadworld.com/t/just-curious/34342/1 "2015-10-22T08:38:15Z")

</div>

We use Oracle Wallet for certain “secured” database instance and a central TNS file for everything else. Since implementing this using IFILEs in a TNS file I’ve noticed that TOAD can no longer list available instances, I have to type them in manually. IS there any way around this?

Chris Johnson

IT Systems Analyst

Distribution Logistics

615-855-4371

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [October 22, 2015, 8:45am UTC](https://forums.toadworld.com/t/just-curious/34342/2 "2015-10-22T08:45:30Z")

</div>

When I add “ifile=c:\test.ora” to my tnsnames.ora, and then put a TNS entry in c:\test.ora, it shows up in the dropdown on the login screen.

What’s the difference between doing it this way and using Oracle Wallet?

---

<div class="post-metadata">

**Author:** ![crjohnso](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@crjohnso](https://forums.toadworld.com/u/crjohnso)\
**Post date:** [October 23, 2015, 8:04pm UTC](https://forums.toadworld.com/t/just-curious/34342/3 "2015-10-23T20:04:22Z")

</div>

We may not be set up correctly, but it works other than this one quirk. I can connect to anything in the wallet or anything in the central TNSNAMES file, it just isn’t listing them in the connect dialog.

Here’s what we have:

TNS\_ADMIN Environment variable that usually points to our central shared TNS file is changed to point to my wallet directory.

In the wallet directory I have:

The wallet files plus

SQLNET.ORA

IFILE = “//{{path to our shared TNSNAMES directory}}\sqlnet.ora”

IFILE = “C:\Oracle\wallet\sqlnet\_wallet.ora”

SQLNET\_WALLET.ORA

WALLET\_LOCATION =

(SOURCE =

(METHOD = FILE)

(METHOD\_DATA =

(DIRECTORY = “c:\oracle\wallet”)

```
)

```

)

SQLNET.WALLET\_OVERRIDE = TRUE

SSL\_CLIENT\_AUTHENTICATION = FALSE

SSL\_VERSION = 0

TNSNAMES.ORA

IFILE = “//{{path to our shared TNSNAMES directory}}\tnsnames.ora”

IFILE = “C:\Oracle\wallet\tnsnames\_wallet.ora”

And TNSNAMES\_WALLET.ORA which contains the standard TNSNAMES format for the connection strings we use with the wallet.

I didn’t set this up, a coworker did and he’s no longer with us, I just followed his documentation, so it may not be set up correctly, but as I said… it does work.

**From:** John Dorlon [[mailto:bounce-jdorlon@toadworld.com](mailto:bounce-jdorlon@toadworld.com)]

**Sent:** Thursday, October 22, 2015 10:47 AM

**To:** [toadoraclebeta@toadworld.com](mailto:toadoraclebeta@toadworld.com)

**Subject:** RE: [Toad for Oracle - Beta Discussion Forum] Just curious

**[RE: Just curious](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86_p_26670_56844-2356844&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=EKf6hxAK8sN-EeEt4SSL1KMsswuRPnegRw6uAHXIoTc&s=-OyfGxyqg1fyXnCQQKLfhrTUEbQZrJfTLm65Fyjqwn4&e=)**

Reply by John Dorlon

When I add “ifile=c:\test.ora” to my tnsnames.ora, and then put a TNS entry in c:\test.ora, it shows up in the dropdown on the login screen.

What’s the difference between doing it this way and using Oracle Wallet?

To reply, please reply-all to this email.

[Stop receiving emails](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86_t_26670-3Fsubscribe-3Dfalse&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=EKf6hxAK8sN-EeEt4SSL1KMsswuRPnegRw6uAHXIoTc&s=v7Jdakfby250TzM1VC2LvCnqluTn-wT-PhK4y6PpP0Y&e=) on this subject.

Or [  
Unsubscribe from Toad for Oracle - Beta](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86-3Fsubscribe-3Dfalse&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=EKf6hxAK8sN-EeEt4SSL1KMsswuRPnegRw6uAHXIoTc&s=YcNhZFZJCI0s5wbn4fE_FIruWQv12q0kT1fRtYeeDWE&e=) notifications altogether.

Toad for Oracle - Beta Discussion Forum

[Flag](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86_p_26670_56844-3FAbuseContentId-3D6431a6db-2Db4a4-2D4268-2Da687-2De693cb1a00d8-26AbuseContentTypeId-3Df586769b-2D0822-2D468a-2Db7f3-2Da94d480ed9b0-26AbuseFlag-3Dtrue&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=EKf6hxAK8sN-EeEt4SSL1KMsswuRPnegRw6uAHXIoTc&s=alFMjs3CD2mgUMKitWte5ZzsjkjctvaIEDD8xwtPFJU&e=)  
this post as spam/abuse.

---

<div class="post-metadata">

**Author:** ![NormTeamT](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/normteamt/32/53_2.png) [@NormTeamT](https://forums.toadworld.com/u/NormTeamT)\
**Post date:** [October 26, 2015, 5:33am UTC](https://forums.toadworld.com/t/just-curious/34342/4 "2015-10-26T05:33:10Z")

</div>

Morning All,

John’s reply about an IFILE command causing the included tnsnames

aliases to be included in the drop down was interesting, as I’ve never

seen it happen! Usually, when at work (in my last contract) I had a

local tnsnames with two IFILE directives, one to pull in the standard

tnsnames frile, and one to pull in my own, or test stuff. None appeared

in the drop down, only anything hard coded into the local tnsnames.ora.

I know that this was also the case quite recently for version 12 as I

used that to perform a technical review of Bert & Dan’s "Toad for Oracle

Unleashed" book that has recently hist the shops. So, I’ll need to go

off and play a bit to see if it all “just” works now.

Ok, in version 12.1.1.1, I am unable to see anything outside the

tnsnames.ora file for my default oracle home (the only home on my

laptop) but I can connect to any alias I have set up in the included IFILE.

Perhaps it is Chris’ version of Toad that is causing the entries in the

IFILE(s) not to be included in the drop down? Or John has a much more up

to date Toad than we have? Just a thought.

What I eventually did with my own system - back in my last contract -

was to take the various tnsnames files, and pass them through a

converter that I wrote (sadly, in Java!) which allows me to import the

connections into my connection grid as per the new session dialogue.

If anyone wants to play with this, it’s at

[qdosmsq.dunbar-it.co.uk/…/.](http://qdosmsq.dunbar-it.co.uk/blog/2014/12/convert-a-tnsnames-ora-file-to-a-toad-session-import-file/.)

If you wish, there’s also a tnsnames validator utility at

[qdosmsq.dunbar-it.co.uk/…/](http://qdosmsq.dunbar-it.co.uk/blog/2014/12/tnsnames-checker-utility/)

which carries out syntax and semantic validations on your tnsnames file(s).

These are both free, source is available, and might be useful, perhaps,

maybe!

HTH

–

Cheers,

Norm. [TeamT]

---

<div class="post-metadata">

**Author:** ![NormTeamT](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/normteamt/32/53_2.png) [@NormTeamT](https://forums.toadworld.com/u/NormTeamT)\
**Post date:** [October 26, 2015, 5:34am UTC](https://forums.toadworld.com/t/just-curious/34342/5 "2015-10-26T05:34:16Z")

</div>

Morning All,

John’s reply about an IFILE command causing the included tnsnames aliases to be included in the drop down was interesting, as I’ve never seen it happen! Usually, when at work (in my last contract) I had a local tnsnames with two IFILE directives, one to pull in the standard tnsnames frile, and one to pull in my own, or test stuff. None appeared in the drop down, only anything hard coded into the local tnsnames.ora.

I know that this was also the case quite recently for version 12 as I used that to perform a technical review of Bert & Dan’s “Toad for Oracle Unleashed” book that has recently hit the shops. So, I’ll need to go off and play a bit to see if it all “just” works now.

Ok, in version 12.1.1.1, I am unable to see anything outside the tnsnames.ora file for my default oracle home (the only home on my laptop) but I can connect to any alias I have set up in the included IFILE.

Perhaps it is Chris’ version of Toad that is causing the entries in the IFILE(s) not to be included in the drop down? Or John has a much more up to date Toad than we have? Just a thought.

What I eventually did with my own system - back in my last contract - was to take the various tnsnames files, and pass them through a converter that I wrote (sadly, in Java!) which allows me to import the connections into my connection grid as per the new session dialogue.

If anyone wants to play with this, it’s at [qdosmsq.dunbar-it.co.uk/…/.](http://qdosmsq.dunbar-it.co.uk/blog/2014/12/convert-a-tnsnames-ora-file-to-a-toad-session-import-file/.)

If you wish, there’s also a tnsnames validator utility at [qdosmsq.dunbar-it.co.uk/…/](http://qdosmsq.dunbar-it.co.uk/blog/2014/12/tnsnames-checker-utility/) which carries out syntax and semantic validations on your tnsnames file(s).

These are both free, source is available, and might be useful, perhaps, maybe!

HTH

---

<div class="post-metadata">

**Author:** ![NormTeamT](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/normteamt/32/53_2.png) [@NormTeamT](https://forums.toadworld.com/u/NormTeamT)\
**Post date:** [October 26, 2015, 5:34am UTC](https://forums.toadworld.com/t/just-curious/34342/6 "2015-10-26T05:34:39Z")

</div>

Twice???

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [October 26, 2015, 6:09am UTC](https://forums.toadworld.com/t/just-curious/34342/7 "2015-10-26T06:09:20Z")

</div>

In my test, I did not have double-quotes around the path.

So, this worked fine:

ifile=c:\test1\file1.ora

ifile=c:\test2\file2.ora

but when I added the quotes, like this, it stopped working. I’ll fix that.

ifile=“c:\test1\file1.ora”

ifile=“c:\test2\file2.ora”

Norm, I tested all the way back to 11.6 and it worked without the quotes.

---

<div class="post-metadata">

**Author:** ![crjohnso](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@crjohnso](https://forums.toadworld.com/u/crjohnso)\
**Post date:** [October 26, 2015, 6:58am UTC](https://forums.toadworld.com/t/just-curious/34342/8 "2015-10-26T06:58:06Z")

</div>

That was the trick. Removed the double quotes and now it works. I checked connections both in the wallet and external and all seems to be working correctly now.

Thanks John!

**From:** John Dorlon [[mailto:bounce-jdorlon@toadworld.com](mailto:bounce-jdorlon@toadworld.com)]

**Sent:** Monday, October 26, 2015 8:10 AM

**To:** [toadoraclebeta@toadworld.com](mailto:toadoraclebeta@toadworld.com)

**Subject:** RE: [Toad for Oracle - Beta Discussion Forum] Just curious

**[RE: Just curious](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86_p_26670_56884-2356884&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=90H5L1b_1BqZ-DJ3uGTfJgOAiW3ooVYFO-mMIsUY-SU&s=cs6SW2FFe2g8t5BOJA408K-17O8uUMDPLUOYGHZTk8E&e=)**

Reply by John Dorlon

In my test, I did not have double-quotes around the path.

So, this worked fine:

ifile=c:\test1\file1.ora

ifile=c:\test2\file2.ora

but when I added the quotes, like this, it stopped working. I’ll fix that.

ifile=“c:\test1\file1.ora”

ifile=“c:\test2\file2.ora”

Norm, I tested all the way back to 11.6 and it worked without the quotes.

To reply, please reply-all to this email.

[Stop receiving emails](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86_t_26670-3Fsubscribe-3Dfalse&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=90H5L1b_1BqZ-DJ3uGTfJgOAiW3ooVYFO-mMIsUY-SU&s=PGEP0ri0yTV_JPBeS4KDsEbVhc4U2SpVpbh7LevDIg4&e=) on this subject.

Or [  
Unsubscribe from Toad for Oracle - Beta](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86-3Fsubscribe-3Dfalse&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=90H5L1b_1BqZ-DJ3uGTfJgOAiW3ooVYFO-mMIsUY-SU&s=KCfLBO_m8EKsHsI_uGXH2j-ZudMe7ffZ1BaYMdXaw6w&e=) notifications altogether.

Toad for Oracle - Beta Discussion Forum

[Flag](https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toadworld.com_products_toad-2Dfor-2Doracle_toad-5Ffor-5Foracle-5Fbeta-5Fprogram_f_86_p_26670_56884-3FAbuseContentId-3D60a42c1c-2D5c90-2D4712-2Da4b7-2D0c4269f42365-26AbuseContentTypeId-3Df586769b-2D0822-2D468a-2Db7f3-2Da94d480ed9b0-26AbuseFlag-3Dtrue&d=AwMFaQ&c=fEu2bgw3pNXAPCclXAucaUr2IoGZ7yiSSHPvd02mOBQ&r=Uv-O3gj4hz9qcAm8hghp2vjaLRYSm_1IyQAsxo_iJDk&m=90H5L1b_1BqZ-DJ3uGTfJgOAiW3ooVYFO-mMIsUY-SU&s=9q0C54fcfya5dad1lODpogFPwI3NkY4x-PETcSMnRHA&e=)  
this post as spam/abuse.

---

<div class="post-metadata">

**Author:** ![NormTeamT](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/normteamt/32/53_2.png) [@NormTeamT](https://forums.toadworld.com/u/NormTeamT)\
**Post date:** [October 26, 2015, 7:02am UTC](https://forums.toadworld.com/t/just-curious/34342/9 "2015-10-26T07:02:04Z")

</div>

Hi John,

good news indeed, thanks. As far as I remember from the Oracle docs, there should be double quotes around the filenames. However, a quick check shows that this is not/no longer the case - at least from 10g onwards. Mind you IFILE is only documented as an init.ora parameter!

I can confirm that removing the double quotes does cause the aliases to appear in the drop down list. This is true for nested IFILEs, at least to two levels.

Thanks John. (Now I need to go fix my tnsnames checker to cope with and without double quotes!)

Cheers,

Norm.
