Oracle Unknown host specified solution

Source: Internet
Author: User

Restoring Oracle one-to-one G to Oracle 10G today, there was a problem with version mismatch first.

This problem can be resolved by using the workaround in http://hundage.blog.51cto.com/3779401/1285465.

After resolving a problem with a header file validation failure, the Execute RESTORE command always prompts the user not to exist.

In the Run dialog box, enter cmd > Sqlplus/nolog >conn sys/manager as SYSDBA; >conn User/password; The returned result is connected.

Just think about whether creating a user is a problem, using Oracle EM (http://ip:1158/em) to create tablespaces, users.

The result of the EM login appeared unknown host specified "java.lang.Exception:Exception in sending Request: null" problem, EM appeared not to use the problem, I chose to avoid, The data is restored using the command line method.

The procedure is as follows:

--Create TABLE space
CREATE smallfile tablespace "TEST_DATA_CW" datafile ' D:\ORACLE\PRODUCT\ORADATA\ORCL\TEST_DATA_CW ' SIZE 100M autoextend On NEXT 50M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO


CREATE smallfile tablespace "Test_data_blob" datafile ' D:\ORACLE\PRODUCT\ORADATA\ORCL\test_data_blob ' SIZE 100M Autoextend on NEXT 50M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO

--Create User
CREATE USER "test_data" profile "default" identified by "Test_data" Default Tablespace "TEST_DATA_CW" temporary tablespace "TEMP" Account UNLOCK
GRANT "CONNECT" to "Test_data"

--Authorization
GRANT ALTER any INDEX to ' test_data ' with ADMIN OPTION
GRANT ALTER any PROCEDURE to ' test_data ' with ADMIN OPTION
GRANT ALTER any TABLE to ' test_data ' with ADMIN OPTION
GRANT CREATE any INDEX to ' test_data ' with ADMIN OPTION
GRANT CREATE any TABLE to ' test_data ' with ADMIN OPTION
GRANT CREATE any VIEW to ' test_data ' with ADMIN OPTION
GRANT CREATE PROCEDURE to ' test_data ' with ADMIN OPTION
GRANT DROP any INDEX to ' test_data ' with ADMIN OPTION
GRANT DROP any PROCEDURE to ' test_data ' with ADMIN OPTION
GRANT DROP any TABLE to ' test_data ' with ADMIN OPTION
GRANT DROP any VIEW to ' test_data ' with ADMIN OPTION

--Revision limits
ALTER USER "Test_data" QUOTA UNLIMITED on "Test_data_blob" QUOTA UNLIMITED on "TEST_DATA_CW"


And then execute

Imp test/[email protected] fromuser=testa touser=test_data full=y file= ' d:\oracle\backup\testA.dmp ' ignore=y Log= ' D:\oracle\backup\testAlog.log ' unsuccessful, hint ORA-01435.

The internet to find this problem or users do not exist. I went to ' D:\ORACLE\PRODUCT\ORADATA\ORCL ' to find the TEST_DATA_CW I created. DBF file, file exists.

Wondering how or if the user does not exist, then use the following command to delete the tablespace:

DROP tablespace tablespace_name including CONTENTS and datafiles

Use the DROP USER test_data; The user I created was deleted.

Re-execute the above creation command before restoring or the problem exists.

Subsequent execution of select name from V$database; Querying Current data
Select instance_name from v$instance; querying the current DB instance

The discovery database and DB instance are not the ORCL that I used to restore.

Go to the Services panel, locate the Oracle-related services ORACLESERVICEORCL and listener, and restart the service.

is always unsuccessful, and later found that there is another listener.

Then he restarted the machine.

This time decided EM way to create the user, solve unknown host specified this error, and later through Baidu to get the solution is to modify the time zone. The following are the specific practices:

① Modify the $ORACLE _home\10.2.0\db_1\kevin_orcl\sysman\config\emd.properties (where KEVIN_ORCL is the directory name on my machine: Servername_sid, If the custom $oracle_home please change it yourself) "You can also search for emd.properties directly under ORACLE's installation directory."

② Open emd.properties with Notepad, where the agenttzregion default is GMT, and you can change to your time zone, for example:
Agenttzregion=asia/shanghai
Restart the machine or oracledbconsole<sid> service

Using Http://ip:1158/em login is now working, I use EM to create tablespace > User > Authorization > Execute Restore command.

This succeeded in reducing the oracle11g to oracle10g.


This article is from the "Perfection" blog, make sure to keep this source http://hundage.blog.51cto.com/3779401/1599947

Oracle Unknown host specified solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.