Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracleÔ¶³ÌÁ¬½Óµ¼Èëµ¼³öÊý¾Ý¿â

·½Ê½Ò».
Ö´ÐÐÒÔÏÂsqlÓï¾ä´´½¨database link
create database link test_link  --Á´½ÓÃû
  connect to   Óû§Ãû   identified by ÃÜÂë
  using '(DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Êý¾Ý¿â·þÎñÆ÷µØÖ·)(PORT = ¶Ë¿Ú))   –-¶Ë¿ÚĬÈÏ1521
    )
    (CONNECT_DATA =
      (SERVICE_NAME = ctaiscs)    --oracle9iÒÔºóÍƼöʹÓÃÈ«¾ÖÊý¾Ý¿âÃû
    )
  )'
SERVICE_NAME=ctais£¬¿ÉÒÔʹÓà SID = Êý¾Ý¿âSIDµÄ·½Ê½
Ok,ÏÖÔھͿÉÒÔ²éѯԶ³ÌÊý¾Ý¿â£»
Select *  from  employee@test_link
·½Ê½¶þ
a)ÅäÖ÷þÎñÃüÃû
´ò¿ªC:\Oracle\ora92\network\admin\ tnsnames.ora,Ìí¼Ó·þÎñÃüÃû
·þÎñÃû =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.30.12)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = È«¾ÖÊý¾Ý¿âÃû)  --Ò²¿ÉÓÃSID=Êý¾Ý¿âSID
    )
 )
b)н¨Êý¾Ý¿âÁ¬½Ó
create database link test_link  --Á´½ÓÃû
  connect to   Óû§Ãû   identified by ÃÜÂë
  using '·þÎñÃû'
ÏÂÃæµÄ´¦Àí·½Ê½Ò»ÑùÁË
ÏÂÃæ¸øÒ»¸öÁ´½ÓÔ¶³ÌÊý¾Ý¿âµ¼ÈëÊý¾ÝµÄÀý×Ó
Create or replace procedure test_proc
IS
Begin
     for x  in (select * from dj_nsrxx@test_link)
     loop
          insert into  dj_nsrxx values  x;
     end loop;
     commit;
end test_proc
³É¹¦Àý×Ó£º
# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
MAXIMO =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = wangjun)(PORT = 1521))
    (CONNECT_DATA =
   &nb


Ïà¹ØÎĵµ£º

Oracle¶àÐмǼºÏ²¢/Á¬½Ó/¾ÛºÏ×Ö·û´®µÄ¼¸ÖÖ·½·¨

ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name     Type          Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y       &nb ......

Oracle¶àÐмǼºÏ²¢/Á¬½Ó/¾ÛºÏ×Ö·û´®µÄ¼¸ÖÖ·½·¨

ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name     Type          Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y       &nb ......

Oracle log files

Oracle log files : An introduction
 
The Oracle server maintains the redo Oracle log files to minimize the loss of data in the Database in case of an uncontrolled shutdown.
Online redo Oracle log files are filled with redo records. A redo record, also called a redo entry, is made up of a gr ......

out ÁË oracle 8i

½üÀ´½ÓÁ˸ö¼òµ¥µÄϵͳ×ö£¬Íâ°üµÄ£¬ÓõÄÊý¾Ý¿âÊÇoracle8i,
Ò»¿ªÊ¼ÎÒʹÓà ojdbc6.jarÀ´×öÁ¬½Ó£¬Á¬²»ÉÏ£¬ÕÒÒ»·¬£¬Ô­À´¹Ù·½oracle8i³öµÄÇý¶¯Ö»ÓÐ class12.jar ºÍclass14.jar ,×îÒªÃüµÄÊDz»Ö§³Öjdk1.4¼°1.4ÒÔÉϵģ¬¹¤×÷Á¿ÂíÉϾÍÉÏÀ´ÁË¡£²»¸ÊÐÄ°¡¡£
×îºóÊÔÁËÏ£¬ÄÜÓõÄÖ»ÓÐojadb14.jar £¬Á¬ÉÏÁË£¬²»¹ýͨ¹ýhibernateÉú³ÉµÄsqlÊµÔ ......

oracleÖؽ¨ÃÜÂëÎļþ


[oracle@dba01 dbs]$ orapwd file=/oracle/app/oracle/product/10.2.0/db_1/dbs/orapworcl password=oracle entries=20 force=y
[oracle@dba01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 29 13:07:10 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Con ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ