在本文中,我们将带你了解AllaboutrowidinOracleDatabase11g在这篇文章中,同时我们还将给您一些技巧,以帮助您实现更有效的(PLSQL+Oracle11g64bit+32位o
在本文中,我们将带你了解All about rowid in Oracle Database 11g在这篇文章中,同时我们还将给您一些技巧,以帮助您实现更有效的(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g、108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal、111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ、2022-09-06:以下go语言代码输出什么?A:Hi All;B:Hi go All;C:Hi;D:go All。 package main import “fmt“ func app() f。
本文目录一览:- All about rowid in Oracle Database 11g
- (PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g
- 108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal
- 111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ
- 2022-09-06:以下go语言代码输出什么?A:Hi All;B:Hi go All;C:Hi;D:go All。 package main import “fmt“ func app() f
All about rowid in Oracle Database 11g
SQL select t.rowid,t.* from scott.test t; ROWID DEPTNO DNAME LOC ------------------ ---------- -------------- ------------- AAAPtpAAEAAAADbAAA 10 ACCOUNTING NEW YORK AAAPtpAAEAAAADbAAB 20 RESEARCH DALLAS AAAPtpAAEAAAADbAAC 30 SALES CHICAGO
SQL> select t.rowid,t.* from scott.test t;ROWID DEPTNO DNAME LOC
------------------ ---------- -------------- -------------
AAAPtpAAEAAAADbAAA 10 ACCOUNTING NEW YORK
AAAPtpAAEAAAADbAAB 20 RESEARCH DALLAS
AAAPtpAAEAAAADbAAC 30 SALES CHICAGO
AAAPtpAAEAAAADbAAD 40 OPERATIONS BOSTON
rowid(AAAPtpAAEAAAADbAAD)详解
AAAPtp --object#
AAE --file#
AAAADb --block#
AAD --row#
SQL> select rowid ,
2 substr(rowid,1,6) "OBJECT#",
3 substr(rowid,7,3) "FILE#",
4 substr(rowid,10,6) "BLOCK#",
5 substr(rowid,16,3) "ROW#"
6 from scott.test;
ROWID OBJECT# FILE# BLOCK# ROW#
------------------ ------------------------ ------------ ------------------------ ------------
AAAPtpAAEAAAADbAAA AAAPtp AAE AAAADb AAA
AAAPtpAAEAAAADbAAB AAAPtp AAE AAAADb AAB
AAAPtpAAEAAAADbAAC AAAPtp AAE AAAADb AAC
AAAPtpAAEAAAADbAAD AAAPtp AAE AAAADb AAD
转换 rowid 的 object#
SQL> select DBMS_ROWID.ROWID_OBJECT(''AAAPtpAAEAAAADbAAD'') from dual
2 union all
3 select object_id from dba_objects where object_name = ''TEST'' AND owner=''SCOTT'';
DBMS_ROWID.ROWID_OBJECT(''AAAPTPAAEAAAADBAAD'')
---------------------------------------------
64361
64361
转换 rowid 的 file# (相对文件编号)
SQL> select DBMS_ROWID.ROWID_RELATIVE_FNO(''AAAPtpAAEAAAADbAAD'') from dual
2 union all
3 select a.file_id from dba_data_files a,dba_segments b where b.SEGMENT_NAME =''TEST'' and b.owner=''SCOTT'' and a.tablespace_name=b.tablespace_name;
DBMS_ROWID.ROWID_RELATIVE_FNO(''AAAPTPAAEAAAADBAAD'')
---------------------------------------------------
4
4
转换 rowid 的 block#
SQL> select dbms_rowid.rowid_block_number(''AAAPtpAAEAAAADbAAD'') from dual;
DBMS_ROWID.ROWID_BLOCK_NUMBER(''AAAPTPAAEAAAADBAAD'')
---------------------------------------------------
219
转换 rowid 的 row#
SQL> select DBMS_ROWID.ROWID_ROW_NUMBER(rowid) from scott.test;
DBMS_ROWID.ROWID_ROW_NUMBER(ROWID)
----------------------------------
0
1
2
3
转换 rowid 的绝对文件编号
SQL> select DBMS_ROWID.ROWID_TO_ABSOLUTE_FNO(''AAAPtpAAEAAAADbAAD'',''SCOTT'',''TEST'') from scott.test;
DBMS_ROWID.ROWID_TO_ABSOLUTE_FNO(''AAAPTPAAEAAAADBAAD'',''SCOTT'',''TEST'')
---------------------------------------------------------------------
4
4
4
4
<p><span></span></p><p><span><span>作者:xiangsir</span></span></p><p><span></span></p><p><span><span>QQ:444367417</span></span></p><p><span><span>MSN:xiangsir@hotmail.com</span></span></p>
(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g
(PLsql Developer + Oracle 11g 64位客户端 + 32位oci.dll文件) 访问Oracle 11g 数据库服务器的方法及说明:
PLsql Developer 连接 64位Oracle 数据库需要找到两个东东:
1、32位的 oci.dll 文件
因为PLsql Developer 为32位软件,故在访问 Oracle 11g 64位数据库时,需首先经过32位的oci.dll这个中间人再与64位oracle 数据库通信。故在PLsql Developer访问 64位oracle 数据库时,必须要能能找到 32位的 oci.dll文件位置。
2、ORACLE_HOME 目录(即 Oracle主目录)
找 ORACLE_HOME 是为了找到 tnsnames.ora .tnsnames.ora存储数据库连接信息。tnsnames.ora可通过”Net Configuration Assistant”配置,或直接从别的计算机上复制一个该文件放置到 Oracle客户端主目录\network\admin 中即可
解决方法多种多样,但要实现的目标也就上面两个。
具体操作步骤:
安装完 Oracle 64位客户端后,进行以下两步设置:
1 环境变量
新增: ORACLE_HOME,指定值为Oracle 64位客户端主目录,如 D:\app\database\product\11.2.0\client_1
使环境变量生效:注销计算机或在CMD命令中执行:C:> set ORACLE_HOME=D:\app\database\product\11.2.0\client_1
2 打开 PLsql Developer,选择“Cancel(或取消)”进入主界面。
选择 tool(工具)-> options(首选项)-> Oracle:指定以下两项
Oracle 主目录:(注:此处不设置ORACLE_HOME,环境变量中已设定)
Oci库:选择 32位oci.dll文件所在目录及文件名,如 :d:\app\oraclient\oci.dll
说明: 1、测试不在Windows 环境变量中指定ORACLE_HOME,而是直接在 PLsql Developer 中指定 “Oracle 主目录”与 “OCI库文件”,连接不成功。 2、32位 oci.dll的获取有两种方式,一是再安装一个32位Oracle 11g 客户端;二是直接从网络下载一个包含32位 oci.dll 的简易安装包。
108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal
108.You are installing Oracle Database 11g on your server. During the installation Oracle UniversalInstaller (OUI) prompts you to enter the path of the inventory directory and also prompts you to specify an
operating system group name. Which statement is true in this case?
A.The ORACLE_BASE parameter is not set.
B.The installation is being performed by the root user.
C.The operating system group that will be specified should have root user as its member.
D.The installation is being performed without the "Create Starter Database" option selected.
E.The operating system group that will be specified must have permission to write to the inventory directory.
答案:E
解析:
这里其实是在安装过程中,指定inventory目录的路径,并且指定操作系统用户组名
inventory这个目录,其实就是安装软件的时候存储一些安装的信息,它的主要作用就是安装和升级,它的路径是通过oraInst.loc文件指定的
指定的系统组对该目录必须有些的权限,因为安装的时候会往里面写,还有日志
A:ORACLE_BASE解释如下 ORACLE_BASE is the root of the Oracle Database directory tree. The Oracle Base directory is the top level directory that you can use to install the varIoUs oracle software products. You can use the same Oracle base directory for multiple installations. For example,/u01/app/oracle is an Oracle base directory created by the oracle user. B:错误,谁会在rott下安装数据库软件啊 C:错误,谁会把root放进去啊 D:错误,不知道这个说的是什么 E:正确
111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ
111.You are installing Oracle Database 11g on a machine. When you run the installer,the Oracle Universal Installer (OUI) shows the message that says one of the product-specific prerequisite checks has Failed: Checking available swap space requirements ... Expected result: 1512MB Actual Result: 1018MB Check complete. The overall result of this check is: Failed <<<< Problem: The system does not have the required swap space. What happens to the installation in this situation? A.It can be continued. B.It resizes the swap space automatically when you proceed further. C.It can be continued,but the instance cannot be started without increasing the swap space. D.It shows a message saying one or more prerequisite checks have Failed and the installation cannot proceed. 答案:A 参考:https://docs.oracle.com/cd/B28359_01/install.111/b32002/pre_install.htm 按照文档上的说,内存最低要求为1g,建议的swap最小是1.5倍也就是1.5g的swap,但是这里如果忽略的话,也可以安装成功2022-09-06:以下go语言代码输出什么?A:Hi All;B:Hi go All;C:Hi;D:go All。 package main import “fmt“ func app() f
2022-09-06:以下go语言代码输出什么?A:Hi All;B:Hi go All;C:Hi;D:go All。
package main
import "fmt"
func app() func(string) string {
t := "Hi"
c := func(b string) string {
t = t + " " + b
return t
}
return c
}
func main() {
a := app()
b := app()
a("go")
fmt.Println(b("All"))
}
答案选A。自然智慧即可。t虽然是闭包,但也是a和b里的局部变量,所以a和b里的t是无关的。
我们今天的关于All about rowid in Oracle Database 11g的分享已经告一段落,感谢您的关注,如果您想了解更多关于(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g、108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal、111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ、2022-09-06:以下go语言代码输出什么?A:Hi All;B:Hi go All;C:Hi;D:go All。 package main import “fmt“ func app() f的相关信息,请在本站查询。
本文标签: