1. 程式人生 > >oracle 服務基本操作,啟動,停止 故障處理

oracle 服務基本操作,啟動,停止 故障處理

oracle 服務基本操作,啟動,停止
lsnrctl start
lsnrctl stop

vncserver license 問題

註冊license

[sql] view plaincopy

    [email protected]:~/VNC-5.0.5-Linux-x86$ sudo ./vnclicense  
    VNC(R) Licensing Utility 5.0.5 (r106461)   
    Built on Mar  4 2013 13:50:05  
    Copyright (C) 2002-2013 RealVNC Ltd.  
    VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other  
    countries.  
    Protected by UK patent 2481870.  
    See http://www.realvnc.com for information on VNC.  
    For third party acknowledgements see:  
    http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txt  
      
    Usage: vnclicense COMMAND  
      
    Commands:  
      -add KEY       Add KEY  
      -remove        Remove the key if there is only one installed  
      -remove N      Remove Nth key shown by "-list"  
      -remove KEY    Remove KEY if it is installed  
      -list          List installed keys  
      -check         Print the number of desktops. Returns 0 if license  
                     installed is valid  


3,新增license key

[sql] view plaincopy

   
[email protected]
:~/VNC-5.0.5-Linux-x86$ vnclicense -check  
    No licenses installed.  

[sql] view plaincopy

    [email protected]:~/VNC-5.0.5-Linux-x86$ sudo ./vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA  
    Enterprise license key has been successfully applied.  


Auto-Generated Local Connection
/ as sysdba
systsem-ORA12C


ORA-27101:shared memory realm does not exist
No such file or directory

處理:
$ sqlplus /nolog
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/oracle/app/oracle/product/12.1.0/dbhome_1/dbs/initORA12C.ora'


[
[email protected]
dbs]# cd /home/oracle/app/oracle/product/12.1.0/dbhome_1/dbs
[[email protected] dbs]# cp init.ora initORA12C.ora


SQL> startup
ORA-48108: invalid value given for the diagnostic_dest init.ora parameter
ORA-48140: the specified ADR Base directory does not exist [/home/oracle/app/oracle/product/12.1.0/dbhome_1/dbs/<ORACLE_BASE>]
ORA-48187: specified directory does not exist
Linux-x86_64 Error: 2: No such file or directory
Additional information: 1


閱讀 initORA12C.ora 其中有內容如下:
##############################################################################
# Example INIT.ORA file
#
# This file is provided by Oracle Corporation as a starting point for
# customizing the Oracle Database installation for your site.    
#
# NOTE: The values that are used in this file are example values only.
# You may want to adjust those values for your specific requirements.
# You might also consider using the Database Configuration Assistant     
# tool (DBCA) to create a server-side initialization parameter file
# and to size your initial set of tablespaces. See the
# Oracle Database 2 Day DBA guide for more information.
###############################################################################

參考內如,直接啟動dbca,需要vncserver,xhost,vncviewer

貌似沒什麼卵用
修改initORA12C.ora <ORACLE_BASE>,完整內容如下:
db_name='ORCL'
memory_target=1G
processes = 150
audit_file_dest='/home/oracle/app/oracle/admin/orcl/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='/home/oracle/app/oracle/fast_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest='/home/oracle/app/oracle'
dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1, ora_control2)
compatible ='11.2.0'

再次啟動
[
[email protected]
~]$ sqlplus /nolog

SQL*Plus: Release 12.1.0.1.0 Production on Mon Oct 12 19:07:43 2015

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

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 1068937216 bytes
Fixed Size            2296576 bytes
Variable Size          671089920 bytes
Database Buffers      390070272 bytes
Redo Buffers            5480448 bytes
ORA-00205: error in identifying control file, check alert log for more info


alert log路徑:$ORACLE_BASE/app/oracle/diag/rdbms/orcl/ORA12C/trace/alert_ORA12C.log

相關錯誤:
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/home/oracle/app/oracle/product/12.1.0/dbhome_1/dbs/ora_control2'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/home/oracle/app/oracle/product/12.1.0/dbhome_1/dbs/ora_control1'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory



修改 initORA12C.ora
control_files = (/home/oracle/app/oracle/oradata/orcl/control01.ctl)

[[email protected] dbs]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Mon Oct 12 19:48:18 2015

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1068937216 bytes
Fixed Size            2296576 bytes
Variable Size          671089920 bytes
Database Buffers      390070272 bytes
Redo Buffers            5480448 bytes
ORA-00201: control file version 12.1.0.0.0 incompatible with ORACLE version
11.2.0.0.0
ORA-00202: control file: '/home/oracle/app/oracle/oradata/orcl/control01.ctl'


SQL>

搞定

相關推薦

oracle 服務基本操作啟動停止 故障處理

oracle 服務基本操作,啟動,停止 lsnrctl start lsnrctl stop vncserver license 問題 註冊license [sql] view plaincopy     [email protected]:~/VNC-5.0.5

處理安裝卸載啟動停止服務

啟動 cacls prompt pause art ota goto root nas ::卸載服務 ::=================================== ::請求管理員省份運行,可以刪除 @echo off >nul 2>&

ID基本操作(標尺參考線網格)5.11

5.1 style 圖片 右鍵 目標 span pan shift 鼠標 參考線:標尺參考線,分欄參考線,出血參考線。在創建參考線之前確保標尺和參考線都可見。並且選中正確的跨頁和頁面作為目標, “版面”“創建參考線”可以輸入數值創建參考線。 跨頁參考線的創建:拖動參考線時鼠

併發程式設計基礎——執行緒狀態啟動停止的幾種方式

前言 遙想當年大二,實習面試的時候,面試官一個問題:作業系統最小的排程單元是什麼?當時還沒學過作業系統,只知道程序的概念,於是乎信心滿滿的答道,當然是程序啊,然後......就沒有然後了。 之後再看這個問題,其實就是一個笑話。作業系統排程的最小單元其實是執行緒。現在想想當時,自己大二就敢

C++|STL學習筆記-map的基本操作(插入刪除遍歷大到小輸出)【仿大佬寫法】

首先的程式碼是插入,刪除,遍歷 執行截圖如下: 原始碼如下: #include <map> #include <iostream> #include <algorithm> using namespace std; typedef pair

redis安裝啟動停止

1.基礎知識  redis是用C語言開發的一個開源的高效能鍵值對(key-value)資料庫。它通過提供多種鍵值資料型別來適應不同場景下的儲存需求,目前為止redis支援的鍵值資料型別如下 字串、列表(lists)、集合(sets)、有序集合(sorts sets)、雜湊表(hashs)

Python OpenCV _1基本操作(畫圖迴圈播放影象滑鼠事件讀取中文路徑中的圖片)

此係列原始碼在我的GitHub裡:https://github.com/yeyujujishou19/Python-OpenCV 一,OpenCV的結構 A)根據功能和需求的不同,OpenCV中的函式介面大體可以分為如下部分: core 核心模組,主要包

OpenCV學習心得二:影象基本操作(建立讀取載入儲存展示)+畫素操控

課程緊張,以後儘量每節課消化後及時更新部落格以加深印象。 此次為第一節實驗課內容,為了方便,我將各個功能寫成一個小方法,在main函式裡呼叫已檢驗成功與否。 helloline()  :建立圖片 draw()  :基本作圖 pixels():操縱圖片畫素點 thr(

資料結構串的基本操作--賦值列印連線

//#include<iostream> #include<stdio.h> #include<stdlib.h> #include<string> #include<string.h> using namespac

C++/STL_中vector基本操作測試程式碼vector.erase()使用方法

通過vector我們可以減少類裡的變數,比如一個類裡儲存了一種資料,但是不知道這種資料到底要儲存個,我們常常使用(結構體陣列/物件陣列),加一個變數來表示 記錄的數量。但是通過vector可以簡化這個

二叉排序樹的基本操作(建立中序遍歷查詢刪除插入)

分析: 二叉排序樹的操作的難點在於刪除操作,刪除操作時,只需要滿足二叉排序樹的性質即可,即需要找到要刪除結點p的左孩子的最右下方的數替代該結點的資料,然後刪除p->lchild的最右下方的結點即可。 對於p->lchild==NULL的,只需要讓雙親結點直接指向

連結串列的基本操作(插入刪除排序、逆置等)

連結串列是資料結構中最基本的,也是非常經典的,在面試筆試中也是經常出現的題,但是萬變不離其宗,只要掌握了基本的操作,一起盡在掌控。 特別要注意的一點是處理時千萬要把是否為頭進行判斷,做為一個特例,或者建立連結串列就先固定建立一個表頭,這樣程式碼就沒這麼多判斷了。 #i

第二天-------單鏈表的基本操作(實驗報告)原始碼

一、 實驗目的     1.掌握單鏈表的儲存特點及其實現。     2.掌握單鏈表的插入、刪除演算法及其應用演算法的程式實現。二、實驗內容1、實驗內容編寫一個完整的程式,實現單鏈表的生成、插入、刪除、輸出等基本操作。(1)       隨機產生或鍵盤輸入一組元素,建立一個帶頭

oracle監聽程式無法啟動無監聽程式

^_^ 試過可行 oracle監聽不能啟動的問題及處理過程! oracle環境如下: SQL> select * from V$version 2 ; BANNER --------------------------------------------------

單鏈表的基本操作(增加查詢刪除修改)-- C 語言

#include <stdio.h> #include <stdlib.h> typedef struct Link { // 資料域 int data; // 指標

Oracle 11G TNSListener不能啟動錯誤3:系統找不到指定路徑

我的oracle服務是手動啟動的,使用360禁用User Profile services後重啟後發現電腦進入的使用者是administator,桌面上常用的軟體圖示都不見了,趕緊又啟用該服務,但是OracleOraDb11g_home1TNSListenerr無法啟動了

程式設計師面試寶典(第三版)——單鏈表的基本操作:建立求長度輸出排序插入刪除逆置

程式設計實現一個單鏈表的建立,求單鏈表的長度,列印輸出單鏈表,對單鏈表進行排序,插入元素,刪除元素,對單鏈表進行逆置。 我是借鑑參考資料,然後自己寫規範,對函式都進行了呼叫,每一次呼叫,都有輸出單鏈表。程式完整,已除錯執行。 源程式: #include<iostrea

Hive學習之HiveServer2服務端配置與啟動允許遠端連線

Hive有三種使用方式——CLI命令列,HWI(hie web interface)瀏覽器 以及 Thrift客戶端連線方式。 1、hive  命令列模式       直接輸入/hive/bin/hive的執行程式,或者輸入 hive –service cli 用

【實戰】Docker入門實踐二:Docker服務基本操作 和 測試Hello World

lag hit 現在 mage spa 關系 .so recommend 不能 操作環境操作系統:CentOS7.2 內存:1GB CPU:2核Docker服務常用命令docker服務操作命令如下service docker start #啟動服務 service doc

Ardupilot chibios編譯啟動main函式學習(2)

目錄 文章目錄 目錄 摘要 1. Chibios編譯過程 2. Chibios啟動程式碼 1.startup_stm32f7xx.mk檔案 1.crt1.c 1.核心初始化函式