HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VARIABLE DEFINITION for oracle user
Operating System - HP-UX
        1839832
        Members
    
    
        2828
        Online
    
    
        110156
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 05:43 AM
06-01-2005 05:43 AM
			
				
					
						
							VARIABLE DEFINITION for oracle user
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I want to ask how can i Define a req. variaable for oracle user and i copy my oracle CD on /var/ora how can i define req. variable according this path....
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 08:41 AM
06-01-2005 08:41 AM
			
				
					
						
							Re: VARIABLE DEFINITION for oracle user
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						if you are talking about a shell variable, you can easily do this in either .profile or .kshrc /.cshrc (<--This one depends on your shell type) files located on oracle user's home directory.
Like:
ORACLE_BASE=/disk01/app/oracle
ORACLE_PATH=/disk01/app/oracle/product/8.1.7/bin:/opt/bin:/bin:/usr/local/bin
ora_db=/disk01/app/oracle/admin/INF
ORACLE_SID=XYZ
ORACLE_HOME=/disk01/app/oracle/product/8.1.7
Hope this helps
		
		
	
	
	
Like:
ORACLE_BASE=/disk01/app/oracle
ORACLE_PATH=/disk01/app/oracle/product/8.1.7/bin:/opt/bin:/bin:/usr/local/bin
ora_db=/disk01/app/oracle/admin/INF
ORACLE_SID=XYZ
ORACLE_HOME=/disk01/app/oracle/product/8.1.7
Hope this helps
	________________________________
UNIX because I majored in cryptology...
			
			
				
			
			
			
			
			
			
		UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 03:59 PM
06-01-2005 03:59 PM
			
				
					
						
							Re: VARIABLE DEFINITION for oracle user
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Mohamed,
You just do like
ORACLE_BASE=/opt/oracle
and when ever you want to refer this path you can say $ORACLE_BASE
Like ORACLE_HOME=/opt/oracle/product/8.1.7.4
Then you can say
ORACLE_HOME=$ORACLE_BASE/product/8.1.7.4
and refer it as $ORACLE_HOME in the script
Indira A
		
		
	
	
	
You just do like
ORACLE_BASE=/opt/oracle
and when ever you want to refer this path you can say $ORACLE_BASE
Like ORACLE_HOME=/opt/oracle/product/8.1.7.4
Then you can say
ORACLE_HOME=$ORACLE_BASE/product/8.1.7.4
and refer it as $ORACLE_HOME in the script
Indira A
	Never give up, Keep Trying
			
			
				
			
			
			
			
			
			
		- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 10:13 PM
06-01-2005 10:13 PM
			
				
					
						
							Re: VARIABLE DEFINITION for oracle user
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						hi,
you can also do:
export MYVAR=/var/ora
regards
yogeeraj
		
		
	
	
	
you can also do:
export MYVAR=/var/ora
regards
yogeeraj
	No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP
