The use of several Oracle

1, the state of the Windows service "OracleServiceWINSOM" service is "start", can perform the task they are also gray. Oracle is not a normal start.
   Solve: RUN: cmd
         svrmgrl
         Connect Internal / the Oracle
         the shutdown load immediate
         the Startup
2, import, export data
   a, delete a user:
      drop the User SmartWeb CASCADE
   b, create a user:
      the Create the User SmartWeb IDENTIFIED by SmartWeb
   c, the user gives permission:
      Grant Connect SmartWeb to
      Grant to SmartWeb Resource
      Grant SmartWeb Create the session to
   D, is connected:
      Conn SmartWeb / SmartWeb
   E, introduced:
      IMP
. 3, see version oracle
   select * from v $ version
4, modify the oracle of Oracle Servlet Engine (OSE) 8080 port (TNSLSNR.exe) occupied.
   After installing Oracle 9i 8080 port is occupied by OSE that tnslsnr.exe process occupied. Clear this port method:
   cd $ ORACLE_HOME / jis / install
   @yhp: sess_sh -u SYS / change_on_install -role SYSDBA -s jdbc: the Oracle: oci8
   [email protected]
   $ Exit
when 5, imp, errors: do not support the request character set conversion (from 850 to 852 type)
   can be obtained using a function NLS_CHARSET_NAME this character set:
   the SQL> SELECT NLS_CHARSET_NAME (. 1) from Dual;
NLS_CHARSET_NAME (. 1)
--------------- ----
US7ASCII
can know the dmp file character set to US7ASCII, if you need to set the dmp file character replaced ZHS16GBK, you need to get with NLS_CHARSET_ID number of the character set:
SQL> NLS_CHARSET_ID the SELECT ( 'ZHS16GBK') from Dual;
NLS_CHARSET_ID ( 'ZHS16GBK')
--------------------------
852
to 852 into a hexadecimal number, 354, 3 bytes of the 0001 into 0354, i.e., the complete conversion of the character set from the dmp file to us7ascii zhs16gbk so, then the file dmp zhs16gbk imported into the database character set on it. (Note that decimal numbers and convert between hexadecimal, to understand the truth)

Reproduced in: https: //www.cnblogs.com/swingboat/archive/2005/02/20/106512.html

Guess you like

Origin blog.csdn.net/weixin_34290390/article/details/93957309