`
haijun0314
  • 浏览: 8106 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Ubuntu oracle

阅读更多
一:安装  省略..

二:启动
1,以oracle用户登录
    su oracle
2,启动TNS监听器
    $ORACLE_HOME/bin/lsnrctl start
3,用sqlplus启动数据库
    $ORACLE_HOME/bin/sqlplus /nolog
    SQL> connect system/change_on_install as sysdba
    SQL> startup
    出现如下显示,表示Oracle已经成功启动
    ORACLE instance started.

    Total System Global Area 205520896 bytes
    Fixed Size 778392 bytes
    Variable Size 74456936 bytes
    Database Buffers 130023424 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.

4 启动 sqlplus
$ORACLE_HOME/bin/isqlplusctl start
5 启动em
emctl start dbconsole启动EM console服务,使用前需要先设置ORACLE_SID环境变量
emctl stop dbconsole停止EM console服务,使用前需要先设置ORACLE_SID环境变量



三:停止
1,用sqlplus停止数据库
$ORACLE_HOME/bin/sqlplus /nolog
SQL> connect system/change_on_install as sysdba
SQL> shutdown
出现如下显示,表示oracle已经停止
Database closed.
Database dismounted.
ORACLE instance shut down.

ORACLE_HOME/bin/emctl start dbconsole
$ORACLE_HOME/bin/isqlplusctl start








四、数据操作
1、创建表空间
    create tablespace study
    logging
    datafile '/opt/ora10/oradata/orcl/study.dbf'
    size 300m
    autoextend on
    next 32m maxsize 2048m
    extent management local
2、创建用户
CREATE  USER "UNIONPAYNEW" PROFILE "DEFAULT"  IDENTIFIED BY "*******" DEFAULT TABLESPACE "STUDY" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK
GRANT UNLIMITED TABLESPACE TO "UNIONPAYNEW" WITH ADMIN OPTION
GRANT "CONNECT" TO "UNIONPAYNEW" WITH ADMIN OPTION
GRANT "DBA" TO "UNIONPAYNEW" WITH ADMIN OPTION
GRANT "RESOURCE" TO "UNIONPAYNEW" WITH ADMIN OPTION
3、导入数据文件 dmp文件
oracle@haijun-laptop:/opt/ora10/bin$ imp

Import: Release 10.2.0.1.0 - Production on Tue Mar 13 13:10:59 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Username: unionpaynew
Password:

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Import file: expdat.dmp > /home/oracle/soft/unionpay.dmp
Enter insert buffer size (minimum is 8192) 30720>

Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
export client uses ZHS16GBK character set (possible charset conversion)
List contents of import file only (yes/no): no >

Ignore create error due to object existence (yes/no): no >

Import grants (yes/no): yes >

Import table data (yes/no): yes >

Import entire export file (yes/no): no >
Username: unionpaynew

Enter table(T) or partition(T:P) names. Null list means all tables for user
Enter table(T) or partition(T:P) name or . if done:

. importing UNIONPAYNEW's objects into UNIONPAYNEW
. . importing table                    "MP_WALLET"          0 rows imported
. . importing table                      "OCS_CL3"          3 rows imported
. . importing table         "TBACTIVE_NOTICE_INFO"          4 rows imported
. . importing table                "TBAPPEAL_INFO"          0 rows imported
. . importing table                 "TBBLACK_LIST"          0 rows imported
. . importing table             "TBBLACK_LIST_REC"          0 rows imported
. . importing table               "TBCARDBIN_INFO"       2268 rows imported
. . importing table             "TBCARD_BIN_ISPAY"        509 rows imported

Import terminated successfully with warnings.
oracle@haijun-laptop:/opt/ora10/bin$
分享到:
评论

相关推荐

    Ubuntu 安装oracle

    ubuntu上装oracle确实挺复杂的,因为oracle不支持嘛,折腾了几天,装上之后也很爽。

    Ubuntu 16.04安装Oracle 11gR2入门教程图文详解

    ### Ubuntu 16.04 安装 Oracle 11gR2 入门教程 #### 系统与版本信息 - Ubuntu版本:ubuntu-16.04.3-desktop-amd64 - Oracle数据库版本:linux.x64_11gR2_database #### 系统初始设置 - **修改root账户密码**:使用...

    ubuntu下的oracle客户端

    ubuntu下的oracle客户端oracle-xe-client_10.2.0.1-1.2_i386.deb

    Ubuntu安装Oracle所需包

    在Ubuntu系统上安装Oracle数据库可能涉及一系列步骤,包括配置环境、安装依赖包和解决可能出现的问题。以下是关于这个过程的一些详细知识点: 1. **环境准备**: 在开始安装Oracle之前,确保你的Ubuntu系统是最新...

    Ubuntu 12.04下安装Oracle Express 11gR2

    在Ubuntu 12.04下安装Oracle Express 11g R2的过程需要一系列的步骤来确保软件的顺利安装和运行。Oracle Express Edition(XE)11g R2是一个免费的数据库管理系统,可为学习和开发提供一个功能丰富的平台。在Linux...

    oracle11g静默安装教程

    ### Oracle11g静默安装教程详解 #### 一、安装前环境准备 在进行Oracle11g的静默安装之前,需要确保已经准备好合适的环境。根据提供的文档内容,这里介绍的是基于CentOS 7的操作系统环境。 1. **虚拟机搭建**: ...

    UBUNTU安装ORACLE11G

    在ubuntu上安装oracle11g,其中有些小细节,不注意是会出问题的,当时我费了不少力的。

    Ubuntu下oracle安装说明

    Ubuntu下oracle安装说明,比较经典的教材,亲自实验成功过。截图看技术博客:pm.htjs.cbb

    Oracle 11g for ubuntu 安装教程

    Oracle 11g for ubuntu 安装教程 Oracle 11g 是一个功能强大的关系数据库管理系统,但是其在 Ubuntu 下的安装却存在一定的难度。以下是 Oracle 11g for ubuntu 安装教程的知识点总结: 安装前提条件 * Ubuntu ...

    ubuntu qt提示QMYSQL driver not loaded 的解决方法不用重新编译

    qt编译连接MYSQL出现QMYSQL ...ubuntu16.04和ubuntu18.04下亲测通过。其余环境未试,请先执行ldd libqsqlmysql.so命令查看是否是libmysqlclient_r.so.18 => not found,是则可以用本安装包,不是的话就不一定适用。

    ubuntu下安装oracle10g

    在Ubuntu 8.04系统上安装Oracle 10g是一项技术性较强的任务,涉及到操作系统配置、依赖安装、用户权限管理以及数据库实例的创建等多个环节。以下是对整个过程的详细阐述: 1. **系统需求与准备**:首先,确保你的...

    Ubuntu 10.10安装Oracle 10g

    ### Ubuntu 10.10 安装 Oracle 10g 详尽教程 #### 一、概述 本文档提供了一套详细的指南,用于在 Ubuntu 10.10 操作系统上安装 Oracle 10g 数据库。该文档由长春工业大学软件职业技术学院的李阳撰写,针对的是那些...

    ubuntu下安装oracle-xe,并建立数据库脚本测试

    ### Ubuntu 下安装 Oracle-XE 并建立数据库脚本测试 #### 安装Oracle-XE 在 Ubuntu 系统上安装 Oracle-XE(Oracle Express Edition)并进行基础配置,需要完成以下步骤: 1. **设置 Oracle-XE 版本源** 首先...

    ubuntu12.04安装oracle10g步骤及错误解决

    实战安装,附带详细步骤,还有一些后期需要的小插件

    Ubuntu8.04_server安装oracle10g

    【Ubuntu 8.04 Server 安装 Oracle 10g 知识点详解】 在 Ubuntu 8.04 Server 上安装 Oracle 10g 是一项技术性较强的任务,需要遵循一系列详细的步骤。以下是安装过程中的关键知识点: 1. **环境准备**: - Ubuntu...

    ubuntu14、16安装Oracle数据库的详细文档

    Ubuntu 14.04.1是目前稳定版中较早的一个版本,本知识点将详细介绍如何在Ubuntu 14.04系统上安装Oracle Linux.x64_11gR2_database。 安装Oracle数据库可以分为几个主要步骤,首先是系统准备和软件安装,接着是安装...

    Ubuntu 安装Oracle Database 快捷版

    Ubuntu 安装 Oracle Database 快捷版 本文将指导用户如何在 Ubuntu 系统中快速安装 Oracle Database 快捷版(XE),并进行基本配置。通过本文,用户可以快速搭建 Oracle-xe 快捷版,满足基本数据库需求。 知识点1...

    Ubuntu_10安装Oracle_10g手记

    根据给定的文件信息,我们可以总结出在Ubuntu 9.10系统上安装Oracle 10g的关键步骤和注意事项,尽管标题与描述提及的是Ubuntu 10,但内容实际涉及的是Ubuntu 9.10。以下是详细的安装指南: ### 安装前的系统准备 ...

Global site tag (gtag.js) - Google Analytics