久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動(dòng):電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價(jià)!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > oracle的一些tips技巧建站知識(shí)

oracle的一些tips技巧建站知識(shí)

時(shí)間:2023-05-22 22:05:22 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 建站小能手

導(dǎo)讀:1建站知識(shí)oracle的一些tips技巧網(wǎng)站建設(shè)百度seo網(wǎng)站優(yōu)化。

網(wǎng)站建設(shè)百度seo網(wǎng)站優(yōu)化最近群里好多人討論oracle安全問題,今天找了些資料學(xué)習(xí)了下 獲取Oracle當(dāng)前會(huì)話的一些屬性 (對(duì)于sql注射的環(huán)境判斷很有用哦) SYS_CONTEXT 函數(shù)返回是與上下文名稱空間相關(guān)的屬性值。這個(gè)函數(shù)可以用在SQL和PL/SQL語句中。 注意: SYS_CONTEXT 返回的是用戶會(huì)話期間的屬性,所以,你無法使用它在并行的查詢或?qū)崟r(shí)應(yīng)用集群環(huán)境。 對(duì)于名稱空間和變量, 你可以定義它(們)為常量字符串,也可以定義一個(gè)變量,來代替名稱空間或?qū)傩缘淖址CQ空間必須是已經(jīng)在數(shù)據(jù)庫(kù)中定義好的, 并且相關(guān)的參數(shù)和值已經(jīng)被指定到DBMS_SESSION中。名稱空間必須是一個(gè)合法的SQL標(biāo)識(shí)符。變量名字可以是任意的字符串。它們不區(qū)分大小寫, 但是長(zhǎng)度不能超出30個(gè)字節(jié)。 函數(shù)返回的數(shù)據(jù)類型是VARCHAR2,回歸值的缺省最大長(zhǎng)度是256個(gè)字節(jié)。你也可以通過設(shè)置函數(shù)參數(shù)length來修改這個(gè)缺省長(zhǎng)度值。值的合法的長(zhǎng)度范圍是1到4000字節(jié)。(如果你指定的值不在這個(gè)范圍內(nèi), Oracle將使用缺省長(zhǎng)度。) Oracle9i 提供了一個(gè)內(nèi)置的"USERENV"名稱空間, 用來表示當(dāng)前的會(huì)話信息。該名稱空間預(yù)定義的參數(shù)如表1, 表的最后一列標(biāo)識(shí)了返回值的長(zhǎng)度。 語法: SYS_CONTEXT(namespace, attribute[, length]) 例子: select SYS_CONTEXT ('USERENV', 'TERMINAL') TERMINAL, SYS_CONTEXT ('USERENV', 'LANGUAGE') LANGUA網(wǎng)站推廣優(yōu)化seoGE, SYS_CONTEXT ('USERENV', 'SESSIONID') SESSIONID, SYS_CONTEXT ('USERENV', 'INSTANCE') INSTANCE, SYS_CONTEXT ('USERENV', 'ENTRYID') ENTRYID, SYS_CONTEXT ('USERENV', 'ISDBA') ISDBA, SYS_CONTEXT ('USERENV', 'NLS_TERRITORY') NLS_TERRITORY, SYS_CONTEXT ('USERENV', 'NLS_CURRENCY') NLS_CURRENCY, SYS_CONTEXT ('USERENV', 'NLS_CALENDAR') NLS_CALENDAR, SYS_CONTEXT ('USERENV', 'NLS_DATE_FORMAT') NLS_DATE_FORMAT, SYS_CONTEXT ('USERENV', 'NLS_DATE_LANGUAGE') NLS_DATE_LANGUAGE, SYS_CONTEXT ('USERENV', 'NLS_SORT') NLS_SORT, SYS_CONTEXT ('USERENV', 'CURRENT_USER') CURRENT_USER, SYS_CONTEXT ('USERENV', 'CURRENT_USERID') CURRENT_USERID, SYS_CONTEXT ('USERENV', 'SESSION_USER') SESSION_USER, SYS_CONTEXT ('USERENV', 'SESSION_USERID') SESSION_USERID, SYS_CONTEXT ('USERENV', 'PROXY_USER') PROXY_USER, SYS_CONTEXT ('USERENV', 'PROXY_USERID') PROXY_USERID, SYS_CONTEXT ('USERENV', 'DB_DOMAIN') DB_DOMAIN, SYS_CONTEXT ('USERENV', 'DB_NAME') DB_NAME, SYS_CONTEXT ('USERENV', 'HOST') HOST, SYS_CONTEXT ('USERENV', 'OS_USER') OS_USER, SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME') EXTERNAL_NAME, SYS_CONTEXT ('USERENV', 'IP_ADDRESS') IP_ADDRESS, SYS_CONTEXT ('USERENV', 'NETWORK_PROTOCOL') NETWORK_PROTOCOL, SYS_CONTEXT ('USERENV', 'BG_JOB_ID') BG_JOB_ID, SYS_CONTEXT ('USERENV', 'FG_JOB_ID') FG_JOB_ID, SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE') AUTHENTICATION_TYPE, SYS_CONTEXT ('USERENV', 'AUTHENTICATION_DATA') AUTHENTICATION_DATA FROM DUAL; 下面的語句返回登錄用戶的名字: CONNECT OE/OE select SYS_CONTEXT ('USERENV', 'SESSION_USER')  FROM DUAL; SYS_CONTEXT ('USERENV', 'SESSION_USER') 網(wǎng)上找的 [code]AUTHENTICATION_DATA  Data being used to authenticate the login user. For X.503 certificate authenticated sessions, this field returns the context of the certificate in HEX2 format.  256  Note: You can change the return value of the AUTHENTICATION_DATA attribute using the length parameter of the syntax. Values of up to 4000 are accepted. This is the only attribute of USERENV for which Oracle implements such a change.  AUTHENTICATION_TYPE  How the user was authenticated:  DATABASE: username/password authentication  OS: operating system external user authentication  NETWORK: network protocol or ANO authentication  PROXY: OCI proxy connection authentication  30  BG_JOB_ID  Job ID of the current session if it was established by an Oracle background process. Null if the session was not established by a background process.  30  CLIENT_INFO  Returns up to 64 bytes of user session information that can be stored by an application using the DBMS_APPLICATION_INFO package.  64  CURRENT_SCHEMA  Name of the default schema being used in the current schema. This value can be changed during the session with an alter SESSION SET CURRENT_SCHEMA statement.  30  CURRENT_SCHEMAID  Identifier of the default schema being used in the current session.  30  CURRENT_USER  The name of the user whose privilege the current session is under.  30  CURRENT_USERID  User ID of the user whose privilege the current session is under  30  DB_DOMAIN  Domain of the database as specified in the DB_DOMAIN initialization parameter.  256  DB_NAME  Name of the database as specified in the DB_NAME initialization parameter  30  ENTRYID  The available auditing entry identifier. You cannot use this option in distributed SQL statements. To use this keyword in USERENV, the initialization parameter AUDIT_TRAIL must be set to true.  30  EXTERNAL_NAME  External name of the database user. For SSL authenticated sessions using v.503 certificates, this field returns the distinguished name (DN) stored in the user certificate.  256  FG_JOB_ID  Job ID of the current session if it was established by a client foreground process. Null if the session was not established by a foreground process.  30  HOST  Name of the host machine from which the client has connected.  54  INSTANCE  The instance identification number of the current instance.  30  IP_ADDRESS  IP address of the machine from which the client is connected.  30  ISDBA  TRUE if you currently have the DBA role enabled and FALSE if you do not.  30  LANG  The ISO abbreviation for the language name, a shorter form than the existing 'LANGUAGE' parameter.  62  LANGUAGE  The language and territory currently used by your session, along with the database character set, in this form:  language_territory.characterset  52  NETWORK_PROTOCOL  Network protocol being used for communication, as specified in the 'PROTOCOL=protocol' portion of the connect string.  256  NLS_CALENDAR  The current calendar of the current session.  62  NLS_CURRENCY  The currency of the current session.  62  NLS_DATE_FORMAT  The date format for the session.  62  NLS_DATE_LANGUAGE  The language used for expressing dates.  62  NLS_SORT  BINARY or the linguistic sort basis.  62  NLS_TERRITORY  The territory of the current session.  62  OS_USER  Operating system username of the client process that in網(wǎng)站seo優(yōu)化課程itiated the database session  30  PROXY_USER  Name of the database user who opened the current session on behalf of SESSION_USER.  30  PROXY_USERID  Identifier of the database user who opened the current session on behalf of SESSION_USER.  30  SESSION_USER  Database user name by which&n網(wǎng)站建設(shè)公司bsp;the current user is authenticated. This value remains the same throughout the duration of the session.  30  SESSION_USERID  Identifier of the database user name by which the current user is authenticated.  30  SESSIONID  The auditing session identifier. You cannot use this option in distributed SQL statements.  30  TERMINAL  The operating system identifier for the client of the current session. In distributed SQL statements, this option returns the identifier for your local session. In a distributed environment, this is supported only for remote select statements, not for remote insert, update, or delete operations. (The return length of this parameter may vary by operating system.)  相關(guān)網(wǎng)站建設(shè)百度seo網(wǎng)站優(yōu)化。

關(guān)鍵詞標(biāo)簽: 標(biāo)題 標(biāo)簽

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-22 ,文章oracle的一些tips技巧建站知識(shí)主要講述標(biāo)簽,標(biāo)題,oracle的一些tips技巧建站知識(shí)1網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_5336.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 双辽市| 苍梧县| 白水县| 日土县| 监利县| 淳化县| 疏勒县| 台南县| 汽车| 玉屏| 安远县| 大城县| 南安市| 应用必备| 杭锦后旗| 贡嘎县| 南康市| 清涧县| 南京市| 西和县| 定远县| 寿光市| 六盘水市| 新乡市| 民勤县| 望江县| 忻城县| 锡林郭勒盟| 万年县| 从江县| 丽江市| 大埔区| 湛江市| 小金县| 营山县| 曲阜市| 汤阴县| 临汾市| 曲松县| 徐州市| 日喀则市|