数据库
首页 > 数据库> > oracle安装心得

oracle安装心得

作者:互联网

1,windows安装oracle,不用安装客户端,直接安装P/LSQL就可以,

2,两台电脑之间连

  1,ping IP

  2, 监听程序开启

  3,sqlplus /nolog        conn sys as sysdba       startup    (这一步一定要成功)

  4,解析不出12541.。。      一定是环境变量错了

  2,listener.ora    tnsnames.ora

·  注:如果在PDB中创建用户名和密码,,,不用sysdba

# tnsnames.ora Network Configuration File: D:\app\Administrator\virtual\product\12.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)  注:PLS开头
      (PRESENTATION = RO)
    )
  )
 ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-GHB4TFBR6F9)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

#新增 @ 标识符,用于区分本地与远程
oracleORCL@10.8.98.246 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.8.98.246)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )
#新增 @ 标识符,用于区分本地与远程 注在pdb创建用用
smartqORCL@10.8.98.246 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.8.98.246)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orclpdb)
    )
  )

  

# listener.ora Network Configuration File: D:\app\Administrator\virtual\product\12.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_DESC =
      (SID_NAME = ORCL)
      (ORACLE_HOME = D:\app\Administrator\virtual\product\12.2.0\dbhome_1)
      (PROGRAM = orcl)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\virtual\product\12.2.0\dbhome_1\bin\oraclr12.dll")
    )
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\app\Administrator\virtual\product\12.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\virtual\product\12.2.0\dbhome_1\bin\oraclr12.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.8.98.246)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

注:
(KEY = EXTPROC1521)   

  

标签:dbhome,心得,app,SID,12.2,ADDRESS,oracle,安装,ora
来源: https://www.cnblogs.com/Bread-Wang/p/10602141.html