redhat 部署多套tomcat环境步骤
1.在需要部署的用户下设置环境变量命令如下:vi .bash_profile#java 环境变量设置export JAVA_HOME=/usr/local/jdk_1.6.0_06export CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar:$CLASS_PATHexport PATH=$JAVA_HOME/bin:$PATH#FIRST TOMCAT export TOMCAT_HOME=/app1/tom/tomcat1...
oracle 跨库查询对象 CREATE DATABSE LINK
最近遇到在不同的数据库之间查询数据的问题,度娘了一下发现create database link。所以查看oracle sql reference后总结下子。创建db link 有两种方式:1.私有的(默认)--用户必须具有create database link 系统权限create database link dbline01connect to user_name identified by passwor...
IMP-00013: only a DBA can import a file exported by another DBA 问题及解决方案
今天遇到导入dmp文件,报 IMP-00013: only a DBA can import a file exported by another DBA 的问题,解决访问有两种:1.给导入用户赋予dba 权限 SQL>grant sysdba to user;SQL>grant imp_full_database to user;2.使用普通用户导出dmp 文件,(我遇到的情况是测试环境的用户都有DBA权限,没有权限revoke dba权...
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
问题原因:log_archive_start参数已过时了NAME TYPE VALUElog_archive_start boolean FALSE即使log_archive_start=false,也是可以自动归档操作SQL> alter system switch logfile;System altered.SQL> /System altered.本地归档路径有相应的文档文件[@more@]
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SQL> show userUSER is "HR"SQL> set autot on statSP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabledSP2-0611: Error enabling STATISTICS report解决方案SQL> show userUSER is "SYS"SQL> grant plustrace to hr;plustrace角色脚本路径(执行脚本创建角色):$ORACLE_HOME/sqlplus/admin/plustrce.sql[@more@]
oracle temporary table
It is also possible to create a temporary table. The definition of a temporary table is visible to all sessions, but the data in a temporary table is visible only to the session that inserts the data into the table. Use the CREATE GLOBAL TEMPORARY TABLE statement to create a temporary table. The ON COMMIT clause indicate if the data in the table is transaction-specific (the default) or session-specific.[@more@]临时表分为两种 会话临时表和事务临时表会话临时表指临时表中的数据只在会话生命周
redo logfile的维护操作
0.日志切换 alter system switch logfile; 1.增加日志组 alter database add logfile group 4 '/uo1/dylan007/redo04.log' size 50M; 2.增加日志组成员 alter database add logfile member '/uo1/dylan007/redo04a.log' to group 4; 3.删除日志组alter database drop logfile group 4; 4.删除日志组成员(必须处于INACTIVE时才能删除)alter database drop logfile member'/uo1/dylan007/redo04a.log'; 5.relocate&rename(必须shutdown immediate--startup mount --alter command--alter database open;)备份日志文件redo0
CONTROL_FILES的多路复用方法
add control_files两种方法:1.修改初始化参数文件pfile 加粗的是新增加的控制文件control_files='/usr/local/src/oradata/dylan007/control01.ctl','/usr/local/src/oradata/dylan007/control02.ctl'1.1 数据文件目录中copy control02.ctl cp control01.ctl control02.ctl 1.2 连接至空闲的实例 创建 spfile sqlplus /nologconn /as sysdbaSQL>create spfile from pfile;SQL> startup2.修改spfile中的CONTROL_FILES 注意要保证是在2.1 sqlplus /nolog SQL>conn /as sysdba SQL>startup SQL>alter system set
手动创建数据库步骤
1.确定oracle的ORACLE_SID名称;2.确定数据库使用的字符集;3.设置参数文件parameter initsid.ora;4.根据参数文件中创建所需要的文件夹;5.创建口令文件 orapwd file=orapwsid password=oracle entries=10 force=y5.设置create database command 脚本;CREATE DATABASE "shirley"MAXINSTANCES 1MAXLOGHISTORY 1MAXLOGFILES 5MAXLOGMEMBERS 5MAXDATAFILES 100DATAFILE '/usr/local/src/oradata/shirley/system01.dbf' size 100m reuse autoextend on next 1m maxsize unlimited extent management localsysaux datafile '/usr/loca
ORA-01045: user HR lacks CREATE SESSION privilege; logon denied
ORA-01045用户HR缺乏CREATE SESSION权限登录被拒绝SQL>grant resource,connect to hr;--解决[@more@]
ORA-28000: the account is locked 解决方式
select username,account_status from dba_users where username='user';如果状态是EXPIRED&LOCKED;SQL>alter user user account unlock;--解锁SQL>password user;--修改过期密码[@more@]
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
此问题主要是由自己的操作系统所引起的问题。vi /etc/hosts 中添加一样,主机名也就是username(hostname命令)ip hostname 保存。此问题解决![@more@]
redhat 5.4 安装oracle11g 步骤
1.创建用户组 oinstall 及用户 oracle2.创建安装文件目录及数据目录3.设置oracle环境变量export ORACLE_BASE=/usr/local/src/oracleexport ORACLE_HOME=$ORALCE_BASE/product/10.2.0/db_1export ORACLE_SID=ngcrmexport PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport LD_LIBRARY=$ORACLE_HOME/lib:/usr/lib4.检查redhat 5.4 系统是否符合oracel安装所需要的包binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3elfutils-libelf-0.125elfutils-libelf-devel-0.125elfutils-libelf-devel-static-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc
ORA-00904: invalid identifier
1.表 列名与sql语句中列名不一致会导致此问题;2.创建语句时 字段加了引号 会导致此问题;[@more@]
11g dmp 导入10g 解决方案
修改11g dmp文件头部版本V11.01.00V10.2.0.4验证完毕!查看需要导入的oracle版本号:sqlplus /nologconn /as sysdbaselect * from v$version;[@more@]
开始啦
开始啦,见证[@more@]