Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

TNS Names Bollocks!

Thread Tools
 
Search this Thread
 
Old 12 August 2005, 12:15 PM
  #1  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default TNS Names Bollocks!

What are the alternatives for replacing this with, its an administrative nightmare with our fookin stupid dba's not being able to publish a central file and then wanting to change entries on certain pc's

I believe I can publish this information into ActiveDirectory?? What versions of oracle support this, as we still have some V7 clients, but mainly 8 & 9 now.

Also isnt there oracle names as well? this would involve them setting something up so is well out of the question..

David
Old 12 August 2005, 01:53 PM
  #2  
darlodge
Scooby Regular
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

I can't help on the AD publishing but you can have a local TNSnames.ora file as well as a global version.

Its the same as Windows hosts files, it looks locally first and then looks at the global version. As an example, if the local copy has a different IP address for a site it uses that local version.

Darren
Old 12 August 2005, 02:35 PM
  #3  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

got any info on this?
Old 12 August 2005, 03:22 PM
  #4  
darlodge
Scooby Regular
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

Our PC's have Oracle 6i installed and the NamersTNS.ora can be found at
C:\ orant\NET80\ADMIN\TNSNAMES.ora

We use it for pointing a few of the TEST PC's to different sites all the time.

Darren
Old 12 August 2005, 04:40 PM
  #5  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

Yeah.. im not explaining this right well..

We do a copy down of tnsnames to that folder.. however some pc's want odd changes and need exlusions.. trying to think of a different way to do it, and as for the oracle instant client

if you want a copy of it

Code:
; Update Oracle TNS Names & BDE32 files, Unless the user is in the VCS-SPC-NoOraIdapi Group.
			      
If InGroup("VCS-SPC-NoOraIdapi") = 0		
	If Exist ($strIDAPI32) = 1
		? "Updating BDE File"
		Copy $strDCNAME+"\NETLOGON\Updates\IDAPI32.CFG" $strIDAPI32
	EndIf
	
	$strOracleHomePath = ReadValue ("HKEY_LOCAL_Machine\Software\Oracle", "Oracle_Home")
	If Len($strOracleHomePath) > 0
		If Instr($strOracleHomePath,"NET80")
			$strOracleHomePath = $strOracleHomePath + "\Admin"
		Else
			$strOracleHomePath = $strOracleHomePath + "\Network\Admin\"
			If Instr($strOracleHomePath,"ORA81")
				? "Oracle 8.1 Installation Detected, Downloading SQLNET.ORA"
				Copy $strDCNAME+"\NETLOGON\Updates\sqlnet.ora" $strOracleHomePath
			EndIf
		EndIf 
		? "Updating TNSNAMES.ORA located in " + UCASE($strOracleHomePath)
		Copy $strDCNAME+"\NETLOGON\Updates\TNSNAMES.ORA" $strOracleHomePath
	Else
		? "Unable to Find Oracle Installation, TNSNAMES.ORA not downloaded."
	EndIf
	
	; Reset BDE Parameters
	
	? "Resetting BDE Parameters"
	If Exist ("C:\Oracle\ora92\bin\oran9.dll") = 1
		$Hideoutput = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\BORLAND\DATABASE ENGINE\SETTINGS\DRIVERS\ORACLE\INIT","VENDOR INIT","OCI.DLL","REG_SZ")
	Else
		$Hideoutput = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\BORLAND\DATABASE ENGINE\SETTINGS\DRIVERS\ORACLE\INIT","VENDOR INIT","ORA73.DLL","REG_SZ")
	EndIf
	$Hideoutput = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\BORLAND\DATABASE ENGINE\SETTINGS\DRIVERS\ORACLE\INIT","DRIVER FLAGS","1","REG_SZ")
EndIf
David
Old 12 August 2005, 09:17 PM
  #6  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Default

David, not quite sure what you want.

Would having the tnsnames.ora file held on the network in a central location solve it?

Code:
 [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]
 "TNS_ADMIN"="x:\\tnsnames"
Something like that reg entry will point the client to use a tnsnames.ora file on the network. You could create other files in a different location for you awkward users.

Or am I smoking the wrong pipe
Old 13 August 2005, 09:30 AM
  #7  
darlodge
Scooby Regular
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

HHxx,

Thats what we do as well, most have registry key pointing to the x: drive and then the PC's that need it have local amended copy.

Darren
Old 13 August 2005, 10:35 AM
  #8  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

Wouldn't LDAP be a better solution David ?

Here's the howto...

http://www.idevelopment.info/data/Or...0/LDAP_8.shtml

steve
Old 13 August 2005, 02:40 PM
  #9  
R1916v
Scooby Regular
 
R1916v's Avatar
 
Join Date: May 2002
Posts: 1,002
Likes: 0
Received 0 Likes on 0 Posts
Default

We have a central repository of a few TNSnames.ora files, although the majority of people will all use the same one.

We just use SMS to distribute the files to the necessary clients, but if you don't use sms that's not any use!
Old 15 August 2005, 10:45 AM
  #10  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

We use sms, but you cant rely on sms!! its package deployment is pretty random when it wants to be. Also the majority of our apps use oracle.. and if the apps dont work the users dont.

LDAP would be the ideal solution, its not so much the copying down of the file, its the fact that we have to do it.. IMHO why cant it just resolve the DB names via DNS??.. but cheers steve Ill have a look... Have you ever done it this way?

Its fookin bollox is oracle.. gimme SQL anyday

David
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
01 December 2015 09:37 AM
Benrowe727
ScoobyNet General
7
28 September 2015 07:05 AM
jonnyboy82
Wanted
0
14 September 2015 10:21 PM
techjeffharris
Member's Gallery
1
10 September 2015 11:23 AM



Quick Reply: TNS Names Bollocks!



All times are GMT +1. The time now is 08:14 PM.