欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

oracle如何設(shè)置ed,oracle如何設(shè)置主鍵自增

Oracle?11g中的ed命令是怎么用的?!

創(chuàng)新互聯(lián)公司主營沙灣網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都app軟件開發(fā),沙灣h5小程序定制開發(fā)搭建,沙灣網(wǎng)站營銷推廣歡迎沙灣等地區(qū)企業(yè)咨詢

會話級別生效

例如

SQL

select

count(*)

from

tab;

COUNT(*)

----------

4750

SQL

define

_EDITOR=vim

SQL

ed

Wrote

file

afiedt.buf

select

count(*)

from

tab

進程級別生效

在操作系統(tǒng)

export

EDITOR=vim

[oracle@localhost

pfile]$

export

EDITOR=vim

[oracle@localhost

pfile]$

sqlplus

"/

as

sysdba"

SQL*Plus:

Release

9.2.0.4.0

-

Production

on

Mon

May

15

16:40:02

2006

SQL

select

sysdate

from

dual;

SQL

ed

全局生效

[oracle@ogg1

admin]$

cd

$ORACLE_HOME/sqlplus/admin

[oracle@ogg1

admin]$

pwd

/u01/app/oracle/product/11.2.0/sqlplus/admin

[oracle@ogg1

admin]$

ls

glogin.sql

help

libsqlplus.def

plustrce.sql

pupbld.sql

SQL

select

count(*)

from

tab;

COUNT(*)

----------

4750

SQL

ed

Wrote

file

afiedt.buf

select

count(*)

from

tab

/

查看幫助信息

SQL

help

ed

EDIT

----

Invokes

an

operating

system

text

editor

on

the

contents

of

the

specified

file

or

on

the

contents

of

the

SQL

buffer.

The

buffer

has

no

command

history

list

and

does

not

record

SQL*Plus

commands.

ED[IT]

[file_name[.ext]]

Oracle 11g中的ed命令是怎么用的?!

就是編輯命令edit的縮寫,在sqlplus命令下help ed可以查看它的介紹和用法,

其實沒必要用這個命令去編輯sql,oracle一般用pl/sql developer, toad這樣的工具

C:\Documents and Settings\Administratorsqlplus scott/tiger

SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 12月 20 19:08:11 2014

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

SQL help ed

EDIT

----

Invokes an operating system text editor on the contents of the

specified file or on the contents of the SQL buffer. The buffer

has no command history list and does not record SQL*Plus commands.

ED[IT] [file_name[.ext]]

Not available in iSQL*Plus

SQL

linux的oracle ed怎么用

Oracle10G 最低系統(tǒng)要求:內(nèi)存:推薦1G,,在虛擬機中為768MSwap分區(qū):1G,設(shè)為內(nèi)存的2倍/tmp磁盤空間:400MB以上磁盤空間:軟件3.5G 數(shù)據(jù)1.2G

所需軟件:SUSE Linux Enterprise 10 for x86,以下簡稱SLES

Oracle database 10gR2 for linux32

Orarun-1.8-XXX.XX.i586.rpm軟件包(這個在sles中軟件安裝oracle 數(shù)據(jù)庫有,也可以從去下載安裝步驟:1、安裝SUSE操作系統(tǒng),并確保安裝“C/C++Compiler and Tools”軟件包。在開發(fā)欄目中2、安裝所需軟件包,安裝orarun軟件包,就是軟件安裝是的oracle 數(shù)據(jù)庫包,省去很多設(shè)置。在數(shù)據(jù)庫欄目中3、Oracle用戶設(shè)置當(dāng)orarun軟件包安裝時,會自動建立名為oracle的用戶,和一個oinstall組。我們只需要將該用戶設(shè)置為enable,把shell從/bin/false改為/bin/bash。而且orarun軟件包將ORACLE_HOME文件夾自動生成,減少了很多麻煩。4、設(shè)置Oracle環(huán)境變量修改/ect/profile.d/oracle.sh文件,ORACLE_HOME、ORACLE_SID等環(huán)境變量可以根據(jù)需要自行修改。例如:ORACLE_HOME=$ORACLE_BASE/product/10gR2ORACLE_SID=ORCL其中默認NLS_LANG=AMERICAN,如果在中文OS下安裝界面會產(chǎn)生亂碼。建議在英文環(huán)境下安裝。

# 注意:中文環(huán)境下亂碼是因為Java顯示不正確,可以改用戶語言為英文進行安裝。#設(shè)置語言環(huán)境#兩個都設(shè)下,LANG和LC_ALL$ export LANG=en_US$ export LC_ALL=en_US這個是臨時更改用戶語言環(huán)境,重登錄后會還原為先前的。如果實在不行,可以yast改語言環(huán)境。然后重登錄或重啟計算機。

如果需要中文安裝界面請看最下的附加一.5、安裝Oracle10gR2注銷root用戶,以oracle用戶重新登錄到KDE。注意不要在root用戶下使用su – oracle來切換到oracle用戶進行安裝,那樣系統(tǒng)圖形界面不能啟動。運行./runInstaller –ignoresysprereqs 開始安裝Oracle, –ignoresysprereqs忽略對操作系統(tǒng)的認證,Oracle10g默認不能安裝在SUSE Linux10上。當(dāng)然也可以將安裝文件拷貝到硬盤,修改database/install/oraparam.ini文件,將其中添加SuSE-10項,按照suse9的參數(shù)復(fù)制,這樣可以不使用–ignoresysprereqs參數(shù)。下面在圖形界面就可以一路順利安裝了。中間可能會在系統(tǒng)檢測那里有提示,不管,按下一步,直至結(jié)束。感覺在SUSE Linux10上安裝Oracle非常方便,不用過多的設(shè)置各種參數(shù)。而且SUSE Linux10界面也非常漂亮,大家有興趣可以試一下。

oracle中的ed怎么用?是不是要在哪里設(shè)置呢?

--先執(zhí)行這一句:

define _editor=vi

就把編輯器設(shè)置成了vi,也可以設(shè)置成你熟悉的,如emacs;

之后,如果你想編輯執(zhí)行過的語句,只要ed一下,

就會用vi打開一個帶有該sql的緩存文件,打開,編輯,退出操作方法和vi

一樣,最后生成afiedt.buf文件。

; 顯示上一條。

/ 執(zhí)行上一條。

pzw define _editor=vi

pzw select 1 from dual;

1

1 row selected.

select 1 from dual

/

"afiedt.buf" 2L, 21C

pzw ed

Wrote file afiedt.buf

1* select 1 from dual

pzw

網(wǎng)頁名稱:oracle如何設(shè)置ed,oracle如何設(shè)置主鍵自增
轉(zhuǎn)載來于:http://chinadenli.net/article36/dsshdpg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)網(wǎng)站策劃網(wǎng)站導(dǎo)航網(wǎng)站改版定制網(wǎng)站網(wǎng)頁設(shè)計公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司