搜尋
首頁資料庫mysql教程Linux 下的Oracle的基本操作

1、su -Oracle――切换Oracle用户(如果使用su oracle ,则启动时不运行.profile用户环境配置文件) $ lsnrctl start――启

  1、su -Oracle――切换Oracle用户(如果使用su oracle ,,则启动时不运行.profile用户环境配置文件)

  $ lsnrctl start――启动监听

  2 启动数据库

  $ sqlplus "/ as sysdba"――用sys用户登陆sqlplus

  SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:06:11 2003

  Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

  Connected to an idle instance.

  SQL> startup――启动数据库

  ORACLE instance started.

  Total System Global Area 538412728 bytes

  Fixed Size 743096 bytes

  Variable Size 268435456 bytes

  Database Buffers 268435456 bytes

  Redo Buffers 798720 bytes

  Database mounted.

  Database opened.

  SQL> exit――退出sqlplus

  Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production

  With the Partitioning option

  JServer Release 9.2.0.5.0 - Production

  或者

  $dbstart

  3 查看数据库进程

  $ ps -ef|grep ora_――查看oracle进程

  oracle 688322 1 0 15:06:20 - 0:00 ora_smon_bxmis

  oracle 696534 704704 0 15:06:35 pts/4 0:00 grep ora_

  oracle 729224 1 0 15:06:20 - 0:00 ora_dbw0_bxmis

  oracle 745618 1 0 15:06:20 - 0:00 ora_reco_bxmis

  oracle 770216 1 0 15:06:20 - 0:00 ora_ckpt_bxmis

  oracle 778394 1 0 15:06:20 - 0:00 ora_pmon_bxmis

  oracle 843876 1 0 15:06:20 - 0:00 ora_qmn0_bxmis

  oracle 901342 1 0 15:06:20 - 0:00 ora_lgwr_bxmis

  oracle 925704 1 0 15:06:20 - 0:00 ora_cjq0_bxmis

  $ ps -ef|grep lsnr――查看oracle监听进程

  4 关闭数据库

  $ sqlplus "/ as sysdba"

  SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:07:04 2003

  Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

  Connected to:

  Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production

  With the Partitioning option

  JServer Release 9.2.0.5.0 - Production

  SQL> shutdown immediate――关闭数据库

  Database closed.

  Database dismounted.

  ORACLE instance shut down.

  SQL> exit

  Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production

  With the Partitioning option

  JServer Release 9.2.0.5.0 - Production

  或者

  $dbshut

  5 停止数据库监听

  $ lsnrctl stop---停止监听

linux

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
如何在MySQL中刪除或修改現有視圖?如何在MySQL中刪除或修改現有視圖?May 16, 2025 am 12:11 AM

todropaviewInmySQL,使用“ dropviewifexistsview_name;” andTomodifyAview,使用“ createOrreplaceViewViewViewview_nameAsSelect ...”。 whendroppingaview,asew dectivectenciesanduse和showcreateateviewViewview_name;“ tounderStanditSsstructure.whenModifying

MySQL視圖:我可以使用哪些設計模式?MySQL視圖:我可以使用哪些設計模式?May 16, 2025 am 12:10 AM

mySqlViewScaneFectectialized unizedesignpatternslikeadapter,Decorator,Factory,andObserver.1)adapterPatternadaptSdataForomDifferentTablesIntoAunifiendView.2)decoratorPatternenhancateDataWithCalcalcualdCalcalculenfields.3)fieldfields.3)

在MySQL中使用視圖的優點是什麼?在MySQL中使用視圖的優點是什麼?May 16, 2025 am 12:09 AM

查看InMysqlareBeneForsImplifyingComplexqueries,增強安全性,確保dataConsistency,andOptimizingPerformance.1)他們simimplifycomplexqueriesbleiesbyEncapsbyEnculatingThemintoreusableviews.2)viewsEnenenhancesecuritybyControllityByControllingDataAcces.3)

如何在MySQL中創建一個簡單的視圖?如何在MySQL中創建一個簡單的視圖?May 16, 2025 am 12:08 AM

toCreateAsimpleViewInmySQL,USEthecReateaTeviewStatement.1)defitEtheetEtheTeViewWithCreatEaTeviewView_nameas.2)指定usethectstatementTorivedesireddata.3)usethectStatementTorivedesireddata.3)usetheviewlikeatlikeatlikeatlikeatlikeatlikeatable.views.viewssimplplifefifydataaccessandenenanceberity but consisterfort,butconserfort,consoncontorfinft

MySQL創建用戶語句:示例和常見錯誤MySQL創建用戶語句:示例和常見錯誤May 16, 2025 am 12:04 AM

1)foralocaluser:createUser'localuser'@'@'localhost'Indidendify'securepassword'; 2)foraremoteuser:creationuser's creationuser'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Rocaluser'@'localhost'Indidendify'seceledify'Securepassword'; 2)

在MySQL中使用視圖的局限性是什麼?在MySQL中使用視圖的局限性是什麼?May 14, 2025 am 12:10 AM

mysqlviewshavelimitations:1)他們不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinsOrsubqueries.2)他們canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

確保您的MySQL數據庫:添加用戶並授予特權確保您的MySQL數據庫:添加用戶並授予特權May 14, 2025 am 12:09 AM

porthusermanagementinmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

哪些因素會影響我可以在MySQL中使用的觸發器數量?哪些因素會影響我可以在MySQL中使用的觸發器數量?May 14, 2025 am 12:08 AM

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)複雜的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強大的PHP整合開發環境

MantisBT

MantisBT

Mantis是一個易於部署的基於Web的缺陷追蹤工具,用於幫助產品缺陷追蹤。它需要PHP、MySQL和一個Web伺服器。請查看我們的演示和託管服務。

mPDF

mPDF

mPDF是一個PHP庫,可以從UTF-8編碼的HTML產生PDF檔案。原作者Ian Back編寫mPDF以從他的網站上「即時」輸出PDF文件,並處理不同的語言。與原始腳本如HTML2FPDF相比,它的速度較慢,並且在使用Unicode字體時產生的檔案較大,但支援CSS樣式等,並進行了大量增強。支援幾乎所有語言,包括RTL(阿拉伯語和希伯來語)和CJK(中日韓)。支援嵌套的區塊級元素(如P、DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

將Eclipse與SAP NetWeaver應用伺服器整合。

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境