Notes on Oracle 10g issues in Linux

Source: Internet
Author: User

1. Oracle startup steps
Log On As an Oracle user and enter the following command
Sqlplus/nolog
Conn/as sysdba
Startup
Quit
Lsnrctl start
2. An error occurs when the Oracle database is started at startup.
ORA-01102: cannot mount database in Exclusive mode
Solution: This is caused by the lk <sid> file, which is located in the Oracle_HOME/dbs directory.
Enter the command
Cd./sbin
./Fuser-k/Oracle_HOME/dbs/lkFSTEST (here lkFSTEST is the database ID)
Restart the database.
Iii. Solutions to failure to log on to the Oracle database using IE browser after the Oracle database is started
Enter the following command
Emctl stop dbconsole
Emctl start dbconsole
4. solutions that cannot be identified by sqlplus, lsnrctl, and emctl commands after Oracle installation is complete
Run the find-name 'sqlplus 'command to copy the files of sqlplus, lsnrctl, and emctl to the/binfile to solve the problem.
Example:
Cp/Oracle/product/10.2.0/db_1/bin/sqlplus/bin
Chmod 777./sqlplus
5. In the Oracle_HOME/install Folder, you can view the number of Oracle ports in portlist. ini.

6. logon Failure: Solution for 5560/isqlplus
In linux, enter the command isqlplusctl start.
VII. database definition command: dbca
Database network configuration command: netca

8. Oracle cannot log on to IE 5560/isqlplus normally. solution:
Choose "Control Panel"> "Administrative Tools"> "Local Security Policy"> "User Rights Assignment"> "process as a batch processing job" (put the local add users and groups)
9. Data export:

1. Completely export the database TEST, and export the username, system password, and root to D: \ daochu. dmp.

Exp system/root @ TEST file = d: \ daochu. dmp full = y

2. Export the tables of system users and sys users in the database

Exp system/root @ TEST file = d: \ daochu. dmp owner = (system, sys)

3. Export the inner_policy and policy_staff_relat tables in the database.

Exp aichannel/aichannel @ TESTDB2 file = d: \ data \ newsmgnt. dmp tables = (inner_policy, policy_staff_relat)

4. Export the data with the field filed1 in table 1 in the database starting with "00"

Exp system/manager @ TEST file = d: \ daochu. dmp tables = (table1) query = \ "where filed1 like '201312 '\"

The above is a commonly used export. For compression, you can use winzip to compress the dmp file.

You can also add compress = y to the command above.


10. Data Import:


1. How to import the Oracle database to the command line in windows
Imp system/root @ sctest2 full = y file = d: \ data \ newsmgnt. dmp ignore = y

How to import commands to Oracle databases in Linux
Imp system/root @ sctest2 full = y file =/home/Oracle/newsmgnt. dmp ignore = y

The above may be a problem, because some tables already exist, and then it will report an error, the table will not be imported.

Add ignore = y to the end.

2. Import table 1 in d: \ daochu. dmp

Imp system/manager @ TEST file = d: \ daochu. dmp tables = (table1)

Related Article

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.