ÈçºÎͨ¹ýSqlplus´´½¨Ò»¸öoracleµÄuser
ÈçºÎͨ¹ýSqlplus´´½¨Ò»¸öoracleµÄuser
1£¬Í¨¹ýsystem¹ÜÀíÔ±Á¬½Óµ½ÒªÌí¼ÓUSERµÄDB
»òÕßͨ¹ýÒÔÏÂÃüÁ Connect system/manager@user_datebase AS SYSDBA ;ÒÔSYSµÇ½ȥ´´½¨Óû§
2,´´½¨Óû§²¢·ÖÅäȨÏÞ
drop user asset cascade; ɾ³ý¸ÃÓû§ÏÂËùÓеıíºÍÊÓͼ
create user asset identified by asset;´´½¨Ò»¸öassetÓû§²¢ÉèÖÃÃÜÂë
grant connect,resource,dba to asset;ΪÓû§·ÖÅäȨÏÞ
3£¬Í¨¹ýSqlplusÈ·ÈÏÓû§Ìí¼ÓÊÇ·ñ³É¹¦
»òÕßͨ¹ýÒÔÏÂÃüÁConnect asset/asset@user_datebase ÒÔassetµÇ½
Ïà¹ØÎĵµ£º
1¡¢´´½¨±í£º
create table stud(
sid int,
sname varchar2(50)
)
²¢²åÈëÒ»ÌõÊý¾Ý
&n ......
PL/SQL-FOR UPDATE Óë FOR UPDATE OFµÄÇø±ð
url:http://hi.baidu.com/1413/blog/item/a521251f7e5993c4a686696b.html
Êý¾Ý¿â oracle for update of ºÍ for updateÇø±ð
select * from TTable1 for update Ëø¶¨±íµÄËùÓÐÐУ¬Ö»ÄܶÁ²»ÄÜд
2 select * from TTable1 wher ......
Ê×ÏÈÄãÒªÓÐtomcat,»¹ÒªÓÐoracle jdbcµÄjarµµµÈ»·¾³.
µÚÒ»²½: дJSP
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@(des ......
СÐÍ»ú·Ïߣ¬¼¸ºõÒѱ»·âËÀ¡£ÎÞ·¨Ê¹ÓÃSun£¬ËüÒѺÍOracle½ôÃܰ󶨣¬Èô»¹Ê¹ÓÃÉÏÊöÉè¼Æ£¬»áºÜÄÑ˵·þÊÛÇ°½«Ð¡ÐÍ»ú¡¢´æ´¢¡¢Êý¾Ý¿â·Ö±ð´Ó²»Í¬³§É̲ɹº£»ÁíÍ⣬ÒàÎÞ·¨Ê¹ÓÃIBM£¬¾Ý˵FLYµÄij¸öÀϰ岻ϲ»¶¡£ ´óÁ¦ÍƽøÊý¾Ý¿âϵͳPC»¯£¬ÕâËƺõÊÇ×î¼Ñ²ßÂÔ¡£FLYÓ¦ÓöÔÊý¾Ý ......
1¡¢ÔÚ±¾»ú69ÉÏ´´½¨Êý¾Ý¿âorcl £¬global_name=orcl£¬Ê¹ÓÃÓï¾ä
alter database rename global_name to orcl.us.oracle.com ÐÞ¸ÄÊý¾Ý¿âµÄÈ«¾ÖÊý¾Ý¿âÃûΪorcl.us.oracle.com
2¡¢ÔÚÐé»ú188ÉÏ´´½¨Êý¾Ý¿âviotest£¬global_name=viotest£¬Ê¹ÓÃÓï¾ä
alter database rename global_name to viotest.us.oracle.com ÐÞ¸ÄÊý¾Ý¿âµÄÈ«¾ÖÊ ......