Home Database Mysql Tutorial Oracle 9i数据导出为文件的管理

Oracle 9i数据导出为文件的管理

Jun 07, 2016 pm 05:53 PM
oracle data document manage

在Oracle 9i中可以方便的把数据导出为文件,或者从文件导入。通过Oracle的管理服务器(Oracle Management Server,OMS)可以方便的实现,整个操作过程中有很多地方需要解释说明,但是完整的指导资料不多。 各大论坛上很多所谓的高手,对该主题的回答往往是,

  在Oracle 9i中可以方便的把数据导出为文件,或者从文件导入。通过Oracle的管理(Oracle Management Server,OMS)可以方便的实现,整个操作过程中有很多地方需要解释说明,但是完整的指导资料不多。

    各大论坛上很多所谓的高手,对该主题的回答往往是,高手是不用OMS的,用exp/impl吧。如果你执意追问,他多半会告诉你,其实我也不知道。如果有一份文档可以傻瓜式的指导他们如何来做,大多数人会欣喜若狂且若无其事的保存,回去慢慢研究。

    使用EntERPrise Manager Console登陆的时候,会有两个选项:独立启动和登陆到Oracle Management Server。前者可以让我们执行一些普通的管理工作,比如管理帐户、对象等,只有后者才能为我们提供备份的功能。不过在登陆到OMS之前,你必须首先安装OMS服务。

    启动Oracle universal installer,查看已安装产品,展开Oracle主目录--oraHome92,如果没有Oracle9i Management and integration,表示你尚未安装。安装方法是:

    在Oracle universal installer的可用产品列表中,选择安装Oracle 9i Management and integration--Oracle Management Server即可。

    安装完成后,你需要配置一个管理资料库,启动:Configuration and Migration tools--Enterprise Manager Configuration Assistant。在配置操作中选择配置本地的Oracle Management Server--创建一个新的资料库档案--典型。系统将会创建一个名为oemrep的数据库,保存管理信息,其中你需要指定sys和system帐号的密码。

    安装完成后,启动Manage Server服务,Windows下你可以到后台服务中直接启动,它的名字是OracleOraHome92ManagementServer。同时请保证其他自动启动的Oracle服务也是启动的。

    然后可以用Enterprise Manaer Console登陆了,帐号sysman 密码oem_temp。第一次登陆后系统会要求你输入新的sysman密码。如果在登陆的时候出现”身份证明不正确”的提示,请确认你使用的登陆帐号是sysman,如果帐号无误却始终出现该错误,请删除刚才建立的资料库,重新建一个。

    如果你使用Windows,备份数据之前,首先需要建立一个操作系统的用户,专门用于Oracle备份,比如建立用户oracle_back,隶属于Administrator组和ora_dba组。然后需要在本地策略中给该用户赋一个批处理权限。方法是:

    控制面板--管理工具--本地安全策略--本地策略--用户权利指派--作为批处理作业登陆,在该权限下面增加刚才建立的oracle_back用户。

    回到Enterprise Manager Console,打开配置--首选项--首选身份证明,在目标名中找到你的机器名,同时它的目标类型为节点,在下面的身份证明中输入oracle_back和它的密码。然后找到你要备份的数据库名,它的目标类型是数据库,在身份证明中输入dba帐号。OK,现在你可以备份数据了。在任意一张表中点右键,选择数据管理--导出,你就可以在作业中看到这个任务。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

How to stop oracle database How to stop oracle database Apr 12, 2025 am 06:12 AM

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

How to paginate oracle database How to paginate oracle database Apr 11, 2025 pm 08:42 PM

Oracle database paging uses ROWNUM pseudo-columns or FETCH statements to implement: ROWNUM pseudo-columns are used to filter results by row numbers and are suitable for complex queries. The FETCH statement is used to get the specified number of first rows and is suitable for simple queries.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

How to create oracle dynamic sql How to create oracle dynamic sql Apr 12, 2025 am 06:06 AM

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values ​​to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

What to do if the oracle log is full What to do if the oracle log is full Apr 12, 2025 am 06:09 AM

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

See all articles