HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Import Users tables
 
Operating System - HP-UX
        1840206
        Members
    
    
        2785
        Online
    
    
        110162
        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
 
07-03-2006 04:40 AM
07-03-2006 04:40 AM
			
				
					
						
							Import Users tables
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi,
Can you please confirm that for example if I wanted to import from a recent export of the database just all table's from user scott the following command will acheive this.
imp scott/tiger@orcl file=orcl.dump FROMUSER=scott TOUSER=scott GRANTS=Y INDEXES=Y ROWS=Y COMMIT=Y CONSTRAINTS=Y DESTROY=Y SKIP_UNUSABLE_INDEXES=Y ANALYZE=Y
Will this recover all tables only for this user ?
Regards,
Pat
		
		
	
	
	
Can you please confirm that for example if I wanted to import from a recent export of the database just all table's from user scott the following command will acheive this.
imp scott/tiger@orcl file=orcl.dump FROMUSER=scott TOUSER=scott GRANTS=Y INDEXES=Y ROWS=Y COMMIT=Y CONSTRAINTS=Y DESTROY=Y SKIP_UNUSABLE_INDEXES=Y ANALYZE=Y
Will this recover all tables only for this user ?
Regards,
Pat
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
07-03-2006 06:21 AM
07-03-2006 06:21 AM
			
				
					
						
							Re: Import Users tables
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Pat,
Please check this page for 'imp' syntax (from Oracle 8i, newer versions similar):
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76955/ch02.htm#22250
Short answer: it depends. The safest way to import is into an empty schema. If tables already exist in the 'SCOTT' schema, your import will report an error for each duplicate table, as 'imp' will not overwrite an existing object. However, depending on what you're trying to accomplish, you might be okay with this behavior.
Here's a more streamlined version with parameters set to default values removed:
imp scott/tiger@orcl file=orcl.dump FROMUSER=scott TOUSER=scott COMMIT=Y DESTROY=Y SKIP_UNUSABLE_INDEXES=Y;
I would consult that web page I mentioned and make sure you really want "DESTROY=Y", which reuses existing datafiles.
If you want to limit the import just to tables and associated objects, you could do a table-mode import ("TABLES=*"):
imp scott/tiger@orcl file=orcl.dump FROMUSER=scott TOUSER=scott TABLES=* COMMIT=Y;
It's probably a good idea to preview the import with "SHOW=Y" before doing it for real. Also consider using a parameter file instead of specifying individual parameters on the command line ("PARFILE=xxx").
And don't forget "nohup imp ... &" will run 'imp' in the background with hangups/quits ignored.
PCS
		
		
	
	
	
Please check this page for 'imp' syntax (from Oracle 8i, newer versions similar):
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76955/ch02.htm#22250
Short answer: it depends. The safest way to import is into an empty schema. If tables already exist in the 'SCOTT' schema, your import will report an error for each duplicate table, as 'imp' will not overwrite an existing object. However, depending on what you're trying to accomplish, you might be okay with this behavior.
Here's a more streamlined version with parameters set to default values removed:
imp scott/tiger@orcl file=orcl.dump FROMUSER=scott TOUSER=scott COMMIT=Y DESTROY=Y SKIP_UNUSABLE_INDEXES=Y;
I would consult that web page I mentioned and make sure you really want "DESTROY=Y", which reuses existing datafiles.
If you want to limit the import just to tables and associated objects, you could do a table-mode import ("TABLES=*"):
imp scott/tiger@orcl file=orcl.dump FROMUSER=scott TOUSER=scott TABLES=* COMMIT=Y;
It's probably a good idea to preview the import with "SHOW=Y" before doing it for real. Also consider using a parameter file instead of specifying individual parameters on the command line ("PARFILE=xxx").
And don't forget "nohup imp ... &" will run 'imp' in the background with hangups/quits ignored.
PCS
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
07-03-2006 07:35 AM
07-03-2006 07:35 AM
			
				
					
						
							Re: Import Users tables
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Pat,
For future reference, Oracle forums:
http://forums.oracle.com/forums/category.jspa?categoryID=18
PCS
		
		
	
	
	
For future reference, Oracle forums:
http://forums.oracle.com/forums/category.jspa?categoryID=18
PCS
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
07-03-2006 10:35 PM
07-03-2006 10:35 PM
			
				
					
						
							Re: Import Users tables
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Thanks for the help.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
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