![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
爱是微笑
这个作者很懒,什么都没留下…
展开
-
There are following step to start the dbconsole
There are following step to start the dbconsole. Step one first check your database is up and running.How will you check it? On the linux prompt type the following command.$ ps -ef|grep oracle转载 2014-06-25 17:38:48 · 689 阅读 · 0 评论 -
如何配置oracle client 和 plsql developer
http://www.cnblogs.com/sleepywang/archive/2009/10/13/1582654.html1. 下载oracle的客户端程序包(30M) 只需要在 Oracle 下载一个叫 Instant Client Package 的软件就可以了,这个软件不需要安装,只要解压就可以用了,很方便,就算重装了系统还是可以用的。 下转载 2014-11-03 10:47:07 · 2294 阅读 · 0 评论 -
oracle wm_concat(column)函数的使用
oracle wm_concat(column)函数使我们经常会使用到的,下面就教您如何使用oracle wm_concat(column)函数实现字段合并,如果您对oracle wm_concat(column)函数使用方面感兴趣的话,不妨一看。shopping:-----------------------------------------u_id goods转载 2014-11-25 11:47:12 · 472 阅读 · 0 评论 -
oracle tnsping命令、sql*plus使用
1、测试数据库服务的命令: 控制台 tnsping命令 IP地址 端口号 数据库服务名称cmd->tnsping 192.168.1.123:1521/oracle10g tnsping命令:如果能够ping通,则说明客户端能解析listener的机器名,而且lister也已经启动,但是并不能说明数据库已经打开,而且tsnping的过转载 2014-11-27 10:59:21 · 649 阅读 · 0 评论 -
oracle怎样查第二行数据出来
数据库中的数据一般是不太关注存储顺序的,一般是在取数据时按某种规则进行排序,所以所谓的第二行不知道你到底是什么意思?如果不加排序:select * from (select * from tabname) a where rownum = 2如果加排序:select * from (select * from转载 2014-11-25 11:49:00 · 4751 阅读 · 0 评论 -
Excel数据导入到oracle
打开pl/sql,如图所示界面,点击菜单栏中的T00LS ODBC Imtorper,打开ODBC Importer选项框在Data fromODBC页中选择需要导入的文件的格式,选择ExcelFiles.输入用户名密码。然后点击Connect在跳出的选择工作簿对话框,选择所要导入的Excel文件,点击确定。在出现的Table/Query中的Import Table转载 2015-01-27 11:45:51 · 777 阅读 · 0 评论 -
用PLSQL查询Oracle数据库某字段的本年数,上年同期数,同比
使用分析函数:偏移量函数偏移量函数:Lag(exp,N,defval) over(PARTITION BY region order by year)Lag函数为Lag(exp,N,defval),exp是所要取值的列,N表示偏移量,若设为1表示为上一个值,defval是当该函数无值可用的情况下返回的值。region 表示参照序列,只对同一个region的值取上一个值。你写的时候需要按per转载 2015-01-28 11:48:32 · 3678 阅读 · 0 评论 -
执行impdp命令出错的解决办法
问题一:With the Partitioning, OLAP, Data Mining and Real Application Testing optionsORA-39002: invalid operationORA-39070: Unable to open the log file.ORA-29283: invalid file operationORA-06512原创 2014-12-12 16:06:30 · 11973 阅读 · 0 评论 -
查找所有SEQUENCE、TABLE, 创建SEQUENCE
查找所有SEQUENCE、TABLE select * from user_objects ubs; www.2cto.com select * from user_objects ubs where ubs.OBJECT_TYPE='SEQUENCE'; --查找所有SEQUENCE select * from user_o转载 2015-03-26 15:04:11 · 757 阅读 · 0 评论 -
oracle的字符集(NLS_LANGUAGE)
数据库服务器字符集select * from nls_database_parameters,其来源于props$,是表示数据库的字符集。 客户端字符集环境select * from nls_instance_parameters,其来源于v$parameter,表示客户端的字符集的设置,可能是参数文件,环境变量或者是注册表 会话字符集环境 select * from nls_转载 2014-11-03 10:33:23 · 509 阅读 · 0 评论 -
plsql识别不了数据库的解决办法
如果你已经完成了以下几点:1.安装了原创 2014-11-03 11:18:42 · 3084 阅读 · 0 评论 -
drop table tablename purge
drop后的表被放在回收站(user_recyclebin)里,而不是直接删除掉。这样,回收站里的表信息就可以被恢复,或彻底清除。1.通过查询回收站user_recyclebin获取被删除的表信息,然后使用语句flashback table to before drop[rename to ];将回收站里的表恢复为原名称或指定新名称,表中数据不会丢失。若要彻底删除表,则使用语转载 2014-11-12 13:20:11 · 1339 阅读 · 0 评论 -
how-to-set-environment-path-variable
There is a time when every Linux Administrator gets stuck at a point of his career when he/she has to set a custom path or any other environment variable permanently in the Linux machine.Suppose原创 2014-06-25 17:43:37 · 612 阅读 · 0 评论 -
[oracle@localhost ~]$ emctl start dbconsole OC4J Configuration issue. /home/oracle/app/oracle/produc
[oracle@localhost ~]$ emctl start dbconsoleOC4J Configuration issue. /home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl not found. 如果出现上述问题原创 2014-06-26 13:38:49 · 1453 阅读 · 0 评论 -
How to resolve TNS:Connection closed error?
Today I faced some issue regarding listener startup and want to share this info with you folks…I got an email from users saying they are unable to connect to one of the production server. They are转载 2014-06-26 11:25:27 · 587 阅读 · 0 评论 -
远程连接oracle数据库
前提:oracle数据库安装在本机的虚拟机上,本机需要连接虚拟机的数据库解决方案:1.确保虚拟机的网络连接方式为 桥接的方式原创 2014-05-19 16:52:11 · 627 阅读 · 0 评论 -
About Password Expiration in Oracle Database 11g
In the Apex Installation Guide you will find the following paragraph:"In the default profile in Oracle Database 11g, the parameter PASSWORD_LIFE_TIME is set to 180. If you are using Oracle Datab转载 2014-06-27 10:44:43 · 735 阅读 · 0 评论 -
Difference between Global DB name and SID
Per documentation:The SID is a unique identifier that you can use to refer to an instance of the database that is available on your system. Use the SID field to specify a unique identifer fo转载 2014-06-17 14:25:38 · 648 阅读 · 0 评论 -
oracle数据库使用不了命令行 sqlplus lsnrctl
I added a oracle bin path (/oracle/product/10.2.0/db_1/bin), and worked for me:export ORACLE_BASE=/oracleexport ORACLE_HOME=/oracle/product/10.2.0/db_1export ORACLE_SID=demoexport PATH=/usr/转载 2014-06-19 13:59:32 · 951 阅读 · 0 评论 -
oracle创建表之前判断表是否存在,如果存在则删除已有表
在sqlserver中,有if exit()这样的语句,但是在oracle中却没有。如果直接使用drop table那么如果表不存在会报错,导致后续语句无法运行。因此可以通过一个存储过来来进行判断。主要是查询all_tables表的TABLE_NAME和OWNER,如果表存在,则执行execute immediate 'drop table TABLE_NAME'; --判断表是否转载 2014-10-27 10:48:48 · 5204 阅读 · 0 评论 -
Oracle PLSQL语句实例
/** * plsql:某个项目对效率要求比较高的时候用,一般不用,大多数项目写的是夸数据库平台的,用不上。 * pssql大多数能做的东西,java都能替代它。在某些特殊的地方要求用plsql的时候你才会用。 * * 变量声明的规则: * 1、变量名不能使用保留字,如from、select等 * 2、第一个字符必须是字母 * 3、变量名最多包含30个字原创 2015-03-12 16:14:18 · 442 阅读 · 0 评论