• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

      2. ORACLE數(shù)據(jù)庫操作基本語句

        時間:2024-09-15 16:00:00 Oracle認(rèn)證 我要投稿
        • 相關(guān)推薦

        ORACLE數(shù)據(jù)庫操作基本語句

          Oracle數(shù)據(jù)庫產(chǎn)品為財富排行榜上的前1000家公司所采用,許多大型網(wǎng)站也選用了Oracle系統(tǒng)。下面是小編收集的關(guān)于ORACLE數(shù)據(jù)庫操作基本語句,希望大家認(rèn)真閱讀!

          1.登陸SPL*PLUS

          [username/password] [@server] as [sysdba|sysoper]

          eg. system/password or connect sys/password as sysdba

          2.查看登錄用戶

          show user

          dba_users

          desc dba_users//展示表結(jié)構(gòu)

          select username from dba_users;

          3.解鎖用戶

          alter user username account unlock

          4.表空間

          數(shù)據(jù)庫--->表空間--->數(shù)據(jù)文件

          表空間分類:

          永久表空間: 表、視圖,永久保存

          臨時表空間: 操作當(dāng)中的過程,過程結(jié)束即被釋放

          UNDO表空間: 保存事務(wù)所修改數(shù)據(jù)的舊址,就是被修改之前的數(shù)據(jù),用于回滾

          5.創(chuàng)建表空間

          create [temporary] tablespace tablespace_name tempfile|datafile 'xx.dbf' size xx

          永久表空間

          create tablespace test1_tablespace

          datafile 'testlfile.dbf' size 10m;

          臨時表空間

          create temporary temptest1_tablespace

          tempfile 'tempfile1.dbf' size 10m;

          改變表空間狀態(tài)

          alter tablespace tablespacename offline|online;聯(lián)機(jī)||脫機(jī)

          alter tablespace tablespacename read only|read write;

          6.增加/刪除數(shù)據(jù)文件

          增加

          alter tablespace tablespace_name add datafile 'xx.dbf' size xx;

          刪除

          alter tablespace tablespace_name drop datafile 'xx.dbf';

          7.表

          (1)基本存儲結(jié)構(gòu)

          (2)二維結(jié)構(gòu)

          (3)行和列

          8.數(shù)據(jù)類型

          字符型

          char(n) n<=2000 補(bǔ)充為n位

          nchar(n) n<=1000

          varchar2(n) n<=4000

          nvarchar2(n)n<=2000

          數(shù)值型

          number(p,s) p有效數(shù)字,s小數(shù)點(diǎn)后的位數(shù)

          float(n)

          日期型

          data

          timestamp

          其他類型

          blob 4GB二進(jìn)制

          clob 4GB字符串

          9.管理表

          創(chuàng)建表

          create table table_name

          (

          colimn_name datatype, ...

          )

        《&.doc》
        将本文的Word文档下载到电脑,方便收藏和打印
        推荐度:
        点击下载文档

        【ORACLE數(shù)據(jù)庫操作基本語句】相關(guān)文章:

        oracle數(shù)據(jù)庫基本語句02-08

        Oracle數(shù)據(jù)庫基本知識03-31

        Oracle數(shù)據(jù)庫SELECT語句03-27

        Oracle數(shù)據(jù)庫語句大全12-21

        Oracle數(shù)據(jù)庫基礎(chǔ)知識:SELECT語句01-23

        Oracle基本術(shù)語大全03-04

        Oracle數(shù)據(jù)庫認(rèn)證層次03-09

        Oracle并行DML操作知識03-27

        oracle數(shù)據(jù)庫培訓(xùn)課程大綱03-21

        在线咨询
        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 亚洲综合日韩精品高清一区 | 日本乱码视频免费播放性爱 | 亚洲精品综合国产精品 | 亚洲最新a在线观看 | 亚洲国产每日更新 | 一区二区三区在线观看精品视频 |

            ORACLE數(shù)據(jù)庫操作基本語句

              Oracle數(shù)據(jù)庫產(chǎn)品為財富排行榜上的前1000家公司所采用,許多大型網(wǎng)站也選用了Oracle系統(tǒng)。下面是小編收集的關(guān)于ORACLE數(shù)據(jù)庫操作基本語句,希望大家認(rèn)真閱讀!

              1.登陸SPL*PLUS

              [username/password] [@server] as [sysdba|sysoper]

              eg. system/password or connect sys/password as sysdba

              2.查看登錄用戶

              show user

              dba_users

              desc dba_users//展示表結(jié)構(gòu)

              select username from dba_users;

              3.解鎖用戶

              alter user username account unlock

              4.表空間

              數(shù)據(jù)庫--->表空間--->數(shù)據(jù)文件

              表空間分類:

              永久表空間: 表、視圖,永久保存

              臨時表空間: 操作當(dāng)中的過程,過程結(jié)束即被釋放

              UNDO表空間: 保存事務(wù)所修改數(shù)據(jù)的舊址,就是被修改之前的數(shù)據(jù),用于回滾

              5.創(chuàng)建表空間

              create [temporary] tablespace tablespace_name tempfile|datafile 'xx.dbf' size xx

              永久表空間

              create tablespace test1_tablespace

              datafile 'testlfile.dbf' size 10m;

              臨時表空間

              create temporary temptest1_tablespace

              tempfile 'tempfile1.dbf' size 10m;

              改變表空間狀態(tài)

              alter tablespace tablespacename offline|online;聯(lián)機(jī)||脫機(jī)

              alter tablespace tablespacename read only|read write;

              6.增加/刪除數(shù)據(jù)文件

              增加

              alter tablespace tablespace_name add datafile 'xx.dbf' size xx;

              刪除

              alter tablespace tablespace_name drop datafile 'xx.dbf';

              7.表

              (1)基本存儲結(jié)構(gòu)

              (2)二維結(jié)構(gòu)

              (3)行和列

              8.數(shù)據(jù)類型

              字符型

              char(n) n<=2000 補(bǔ)充為n位

              nchar(n) n<=1000

              varchar2(n) n<=4000

              nvarchar2(n)n<=2000

              數(shù)值型

              number(p,s) p有效數(shù)字,s小數(shù)點(diǎn)后的位數(shù)

              float(n)

              日期型

              data

              timestamp

              其他類型

              blob 4GB二進(jìn)制

              clob 4GB字符串

              9.管理表

              創(chuàng)建表

              create table table_name

              (

              colimn_name datatype, ...

              )