61.Linux2008. 7. 22. 09:29
반응형
☆ Unix File System

boot block
: 부팅시 필요한 코드가 저장되있는 block

super block : 전체 파일시스템에 대한 정보를 저장

inode block : 각 파일이나 디렉토리에 대한 모든 정보 저장
                 ( 파일 소유자 사용번호 & 그룹 번호 , 파일크기 & type , 파일 생성시기 & 최종 변경시기 & 최근 사용시기
                    ,  파일의 보호권한 , 파일 링크수 , 데이터가 저장된 블록의 시작주소)

data block : 디렉토리 별로 디렉토리 엔트리와 실제 파일에 대한 데이터가 저장



 <파일 시스템 구조의 예 >


< file 1 이 삭제 될 경우 >

즉, inode 블럭에 링크된 모든 링크가 삭제되야 data 블럭의 파일이 지워짐.


☆ Link

Hard link : 원본 파일과 동일한 inode 블럭 이용.  원본 파일 data와 링크

Soft link  : 원본 파일과 다른 inode 블럭 이용.  원본 파일 포인터와 링크

<  링크 구조와 파일 시스템 >



하드링크 :

#  ln  <링크 대상 파일명>  <링크 파일명>   // 원본파일 삭제 or 경로 변경과 무관, 원본과 동일한 크기

소프트 링크 :

#  ln  -s  <링크 대상 파일명>  <링크 파일명>   // 원본파일 삭제 or 경로 변경시 쓸모 없어짐, 아주 작은 크기

Posted by 1010
61.Linux2008. 7. 22. 09:28
반응형
☆ rpm (Redhat Packege Manager)

레드햇 사에서 만든 설치파일 (setup.exe 파일과 비슷)

구조 : <패키지 이름>-<버전>-<릴리즈 번호>.<아키텍쳐>.rpm
                                                                            ※

※ 아키텍쳐 : ☞ i386, i486, i586, i686, x86. x86_64   (intel or AMD 계열 cpu)
                   ☞ alpha, sparc, ia64   (해당 cpu를 의미)
                   ☞ src   (소스파일 패키지 , 설치후 별도의 컴파일 필요)
                   ☞ noarch    (모든 종류)


☆ 패키지 설치

# rpm  -Uvh  <rpm 파일>

옵션  'U' : update (주지 않을경우 일반적인 설치
        'v' : 설치과정 확인
        'h' : 진행과정을 # 로 표시


☆ 패키지 삭제

# rpm  -e  <패키지>


☆ 패키지 질의

# rpm  -qa  <패키지>       // 패키지 설치 질의

# rpm  -qf  <파일명 & 경로>    // 해당파일 소속 패키지 질의

# rpm  -ql  <패키지>   // 패키지 파일 내용 질의

# rpm  -qi  <패키지>  // 패키지 상세정보


☆ 파일간의 의존성 문제는 해결해주지 못함


※ rpm 예시~ " Fedora 4 에 'mc' 설치하기"

1. Fedora 4 i386  '4번' 시디 준비

2. 마운트 확인

3. # cd  /media/cdrom/Fedora/RPMS/    이동

4. # ls  mc*     패키지 확인

5. # rpm  -Uvh  mc...      (Tab)키 활용 ;;
Posted by 1010
02.Oracle/DataBase2008. 7. 22. 09:27
반응형
리눅스에서의 네트워크 장치 이름

    랜카드 장착시 -> '/dev/eth0'  ,  '/dev/eth1'  ,  ...




☆ IP 주소

- 각 컴퓨터 랜카드에 부여되는 고유한 주소

예) 255 . 255 . 255 . 255




☆ 네트워크 주소

- 같은 네트워크에 있는 공통된 주소.

- 각 IP에 서브넷 마스크( C클래스의 경우 : 255 . 255 . 255 . 0 ) 를 XOR하면 나오는 주소.


예)  리눅스 서버 IP          : 192 . 168 . 184 . 100

      리눅스 클라이언트 IP : 192 . 168 . 184 . 200

      윈도우 클라이언트 IP : 192 . 168 . 184 . 201


      >> 굵은 부분이 네트워크 주소

      >> 밑줄 부분이 사설 네트워크 주소

           : 외부와 분리된 별도의 네트워크 공인 IP가 부족할때 사용함.




☆ Broadcast

- 내부 네트워크의 모든 컴퓨터가 듣게되는 주소.

- 네트워크 주소 + 255

   예)  ( C클래스 )  192 . 168 . 184 . 255




☆ Gateway , Router

- 게이트웨이 = 라우터

- 네트워크 간에 데이터를 전송하는 장비 또는 컴퓨터.

- 외부 네트워크로 나가기 위한 통로.

- 게이트웨이 주소 마지막 숫자는 관리자가 정하기 나름.

※ 게이트웨이 를 별도로 추가시

    # route  add  default  gw  <게이트웨이 주소>  dev  <장치 이름>

    예)  # route  add  default  gw  192.168.184.254  dev  eth0




☆ Net Mask  &  Class


- 넷마스크 : 네트워크의 규모를 등급별로 결정함.

- C 클래스 : 256개의 IP주소 사용가능

                 예)  네트워크 주소 : 192 . 168 . 184 . 0
                       넷마스크 주소 : 255 . 255 . 255 . 0

- B 클래스 : 65536개의 IP주소 사용가능 ( 2^16 )

                 예)  네트워크 주소 : 192 . 168 . 0 . 0
                       넷마스크 주소 : 255 . 255 . 0 . 0

- A 클래스 : 2^24 개의 IP주소 사용가능

                 예)  네트워크 주소 : 192 . 0 . 0 . 0
                       넷마스크 주소 : 255 . 0 . 0 . 0


※ 설치 가능한 컴퓨터 갯수

    네트워크 주소, 브로드 캐스트 주소, 게이트 웨이 주소 3개를 제외한

    갯수의 컴퓨터를 네트워크 내부에 설치할 수 있다. (C클래스의 경우 256-3 = 253대)




☆ DNS 서버 주소

- URL을 해당 컴퓨터의 IP주소로 변환해주는 서버 컴퓨터의 주소

- 설정 파일  :  /etc/resolv.conf

                    ------------------------------------
                    ........

                    Default  Server : *****                       // DNS 제공자

                    nameserver < ***.***.***.*** >         // 해당 DNS 서버 IP
                    ........

                    ------------------------------------




☆ 네트워크 관련 명령어


ⓐ # system-config-network

    - 네트워크 연결방식을 DHCP 클라이언트 또는 고정 IP 주소를 사용할지 결정

    - IP 주소 , 서브넷 마스크 , 게이트웨이 정보

    - DNS 정보

    - 네트워크 카드 드라이버 설정 , 장치 (eth0) 설정


ⓑ # system-config-network-tui

    - Text User Interface  :  네트워크 설정의 텍스트 모드


ⓒ # service  network  restart

    - 네트워크 설정 변경후 변경 내용을 시스템에 적용 (네트워크 서비스 재시작)


ⓓ # ifconfig < 장치 이름 >

    - 해당 장치의 IP 주소 설정 정보를 출력


ⓔ # nslookup

    - DNS 서버작동 테스트


ⓕ # ping

    - 네트워크에 응답 테스트




☆ 네트워크 설정 변경 관련 파일

 /etc/sysconfig/network                                 // 기본 정보

 /etc/sysconfig/network-scripts/ifcfg-eth0       // eth0 에대한 정보 몽창..

/etc/resolv.conf                                            // DNS 서버정보 및 호스트 이름 정보




☆ 네트워크 카드 교체

- 실제로 네트워크 카드에 문제가 발생시 적용시킬수 있다.


1. 네트워크 카드를 제거.

2. 네트워크 카드를 새로 장착.

3. root 로 부팅~

4. # system-config-network

5. "하드웨어" 탭  →  'eth0' 지우기

                       [새로만들기]  →  하드웨어 타입 'Ethernet' 선택

                       →  <네트워크 아답터 설정 창>  →  아답터 'AMD PCnet32' 선택

6. "장치" 탭  →  [새로만들기]  →  '이더넷 연결' 선택  →  'AMD PCnet32' 선택

                       →  <네트워크 셋팅 설정 창>  →  '정적으로 설정된 IP 주소들' 선택

                       →  네트워크 정보 입력

7. "DNS" 탭  →  DNS 주소 확인

8. 완료 (창닫기 or  메뉴 [파일]-[끝내기] 선택)

9. # service  network  restart            // 서비스 재시작

10. # ping  www.google.co.kr          //  응답확인

11. # ifconfig  eth0                          //  네트워크 설정 확인




☆ 네트워크 설정 - Text Mode

# vi  /etc/sysconfig/network         // 확인

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

   다음 사항을 수정한다.

   ----------------------------------------------------

   ..............

   NETMASK = *** . *** . *** . ***              // 넷마스크

   IPADDR = *** . *** . *** . ***                  // IP 주소
   ..............

   GATEWAY = *** . *** . *** . ***             // 게이트 웨이 주소
   ..............

   ----------------------------------------------------

# service  network  restart




☆ 네트워크 설정 - Command Mode

# ifconfig  eth0  <IP 주소>  netmask  <넷마스크>  broadcast  <브로드캐스트 주소>  up

# route  add  -net  <네트워크 주소>  netmask  <넷마스크>  eth0

# route  add  default  gw  <게이트웨이 주소>  dev  eth0

# vi /etc/resolv.conf          // DNS 설정

# service  network  restart





※  인터넷이 잘 안될때 , DNS 서버 고장을 의심해보자

ⓐ DNS 서버 작동 확인하기

    # nslookup

    > server                     // 사용중인 DNS 서버 주소확인,  "Default server :" 이후에 나오는 주소가 DNS주소

    > www.google.co.kr

       ;; connection timed out; no servers could be reached

        위와 같은 에러 메시지가 나온다면 DNS 서버가 고장나거나, DNS 서버의 주소가 잘못된것.


ⓑ 다른 컴퓨터에서 DNS 주소 따오기

     windows 인경우 : cmd 창에서 'nslookup' 명령으로 DNS 주소 획득~

     linux 인 경우 :  위 ⓐ방법으로 확인


ⓒ 가져온 DNS 주소 확인하기

    # nslookup

    > server  <새로운 DNS 주소>

    > www.google.co.kr               // DNS 서버 작동 확인


ⓓ 정상 작동하는 DNS 주소 적용하기

    # vi  /etc/resolv.conf               // 'nameserver' 부분 수정
Posted by 1010
61.Linux2008. 7. 22. 09:26
반응형
☆  pipe  '|'

- 두 프로그램을 연결해주는 통로를 의미

# ls  -l  /etc | more




☆ Filter  (grep , tail , wc , sort , awk , sed 등)

- 필요한 것만 걸러주는 명령어 , 주로 파이프와 같이 이용

예)

# ps  -ef  |  grep  bash       //  bash라는 글자가 들어간 프로세스 번호만 출력

# rpm  -qa  |  grep  bind         // 단순히 rpm -qa bind 명령으로는 bind-utils 는 출력되지 않음




☆ Redirection

- 표준 입출력의 방향을 바꿔줌.

   보통 모니터 출력을 파일로 저장할 때 사용.

예)

# ls  -l  > a.lst                   // ls -l 의 내용을 a.lst 파일로 저장 (존재시 덮어씀)

# ls  -l  >>  a.lst                // 파일 존재시 이어씀

# sort  <  a.lst                    // a.lst 내용을 정렬하여 화면에 출력

# sort  <  a.lst  >  b.lst        // 위 처럼 화면에 출력된 것을 b.lst 파일로 저장




☆ 프로세스

- 하드 디스크에 저장된 실행 코드(프로그램)가 메모리에 로딩되어 활성화 된것.


ⓐ 포그라운드 프로세스  :  실행 화면에 등장.  사용자와 상호작용하는 프로세스

ⓑ 백그라운드 프로세스  :  실행은 되었지만 화면에 등장하지는 않음

ⓒ 프로세스 번호           :  메모리에 로딩되어 활성화된 프로세스를 구분하기 위해

                                     각 프로세스에 부여된 고유 번호

ⓓ 작업 번호                 :  실행되고 있는 백그라운드 프로세스의 순차 번호 (프로세스 번호와 다름)

ⓔ 부모 & 자식 프로세스 :  - 모든 프로세스는 독립되어 실행되지 않고, 부모 프로세스 하위에 종속되어 실행

                                     - 부모 프로세스 종료시, 종속된 모든 자식 프로세스도 자동 종료

                                     예)  X window (부모 프로세스)  ↔  FireFox (자식 프로세스)



※ 프로세스 관련 명령어

1. ps  :  프로세스 상태 확인

   # ps  -ef  |  grep  <프로세스 번호>

2. kill  :  프로세스 강제 종료

   # kill  -9  <프로세스 번호>           // -9 : 무조건 종료

3. pstree  :  부모, 자식 관계를 트리로 보여줌.



포그라운드    백그라운드    포그라운드  →  프로세스 종료
         ⓐ         ①        ⓑ        ②                                ⓒ

ⓐ : 실행중인 포그라운드 프로세스를 'Ctrl + z' 를 눌러 일시 중지 시킴

[1]+  Stopped            <프로세스 이름>

① : # bg                  // 일시 중지시킨 프로세스가 백그라운드 프로세스로 전환됨

[1]+  <프로세스 이름> &

ⓑ : # jobs              // 현재 백그라운드에서 진행중인 프로세스 출력

[1]+  Running           <프로세스 이름> &

② : # fg <작업번호>  // 작업번호에 해당되는 프로세스를 포그라운드 프로세스로 전환시킴
                                      jobs 에서 보이는 [*] 번호

ⓒ : 'Ctrl + c'를 누르면 프로세스 작업이 종료됨



백그라운드 옵션  '&'

- gedit 나 gzip 으로 대용량 파일 압축할때 효율적이다.

예)  # gedit &
Posted by 1010
61.Linux2008. 7. 22. 09:24
반응형
1. yum install vnc-server
2. vncpasswd
3. /etc/sysconfig/vncservers
   VNCSERVERS="1:root"
4. vi /etc/sysconfig/iptables
   -A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
5. vnc restart
Posted by 1010
61.Linux2008. 7. 21. 14:02
반응형

페도라 네트워크 설정하는데 완젼 삽질했음..
다른게 아니라 DNS 에서 완젼 캐삽질....
dns 설정은 보통 인터넷으로 검색해 보니 resolv.conf 를 수정해주면 된다고 나와있다.

#vi /etc/resolv.conf


참고로 저는 페도라9을 설치 했는데 service network restart 했더니 resolv.conf 파일이 초기화 되어있다.
근데 resolv.conf 파일을 열어보면 자동으로 생성되는 파일이라고 수정하지 말라고 씌여 있다.

그래서 혹시나 해서 ifcfg-eth0 을 수정해봤다.

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
HWADDR=XXXXXXXXX
ONBOOT=yes
NM_CONTROLLED=yes
IPADDR=XXX.XXX.XXX.XXX
NETMASK=255.255.255.0
GATEWAY=XXX.XXX.XXX.XX
DNS1=XXX.XXX.XXX.XX
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no

DNS1 이 부분을 추가해줬더니 된다..


파일을 열어 확인해 봤더니 nameserver 가 추가되어 있다. ^ㅆ^

#vi /etc/resolv.conf

# generated by NetworkManager, do not edit!
nameserver 192.203.138.11

와.. . 이거 하나 때문에 얼마나 삽질했는지..
외부에서 telnet 접속은 되지만
ping 을 입력해보면 호스트를 찾을 수 없다.
그리고 yum update 를 했을때, 혹은 yum 을 이용해서 뭔가 설치하려고 하면 아래와 같은 오류가 발생 할
수 있다.

[Errno 4] IOError: <urlopen error (-3, ....

이럴땐 DNS 설정을 해주면 해결이 된다.


출처 : http://chery.tistory.com/119 님....

Posted by 1010
02.Oracle/DataBase2008. 7. 21. 13:51
반응형

OC4J Configuration issue...

First you should check database/instance configure for DATABASE CONTROL


If a hostname_sid directory does not exist in the Oracle Database 10g home directory, then the Oracle Enterprise Manager 10g Database Control Console was not configured for the database instance.




E:\>set oracle_sid=db01

E:\>emctl getemhome
Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
EMHOME=C:\oracle\product\10.1.0\Db_1/taj.domainname.local_db01

If you get above output mean DATABASE configure FOR DB CONTROL otherwise DATABASE is not configure for DB CONTROL and you will see message like "EM Configuration issue".

We can configure DATABASE/INSTANCE for DB CONTROL through TWO WAY
1.DBCA
2.EMCA

DBCA
E:\>set oracle_sid=sh

E:\>emctl status dbconsole
OC4J Configuration issue. C:\oracle\product\10.1.0\Db_1/oc4j/j2ee/OC4J_DBConsole
_taj.domainname.local_sh not found.

E:\>dbca
Note : dbca ---> Configure Database option ---> Select DB and give PWD ---> Check Mark on Configure database with enterprise manager. ---> Finish
E:\>set oracle_sid=sh

E:\>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
http://taj.domainname.local:5503/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory C:\oracle\product\10.1.0\Db_1/taj.domainname.local_sh/sysman/log

--------------------------------------------------------------
You can also Configure Database Control through EMCA command line utility.
E:\>set oracle_sid=db01

E:\>emca

STARTED EMCA at Thu Jan 11 10:39:37 GST 2007
Enter the following information about the database to be configured
Listener port number: 1521
Database SID: db01
Service name: db01
Email address for notification:
Email gateway for notification:
Password for dbsnmp:
Password for sysman:
Password for sys:

-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ C:\oracle\product\10.1.0\Db_1
Enterprise Manager ORACLE_HOME ................ C:\oracle\product\10.1.0\Db_1

Database host name ................ taj.domainname.local
Listener port number ................ 1521
Database SID ................ db01
Service name ................ db01
Email address for notification ...............
Email gateway for notification ...............

-----------------------------------------------------------------
Do you wish to continue? [yes/no]: yes
Jan 11, 2007 10:40:22 AM oracle.sysman.emcp.EMConfig checkConfiguration
SEVERE: Repository already exists. Fix the error(s) and run EM Configuration As
sistant again in standalone mode.
Could not complete the configuration. Refer to the log file for details

emca -r :skip creation of repository schema
E:\>emca -r

STARTED EMCA at Thu Jan 11 10:42:33 GST 2007
Enter the following information about the database to be configured
Listener port number: 1521
Database SID: db01
Service name: db01
Email address for notification:
Email gateway for notification:
Password for dbsnmp:
Password for sysman:
Password for sys: :
Password for sys:
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ C:\oracle\product\10.1.0\Db_1
Enterprise Manager ORACLE_HOME ................ C:\oracle\product\10.1.0\Db_1

Database host name ................ taj.domainname.local
Listener port number ................ 1521
Database SID ................ db01
Service name ................ db01
Email address for notification ...............
Email gateway for notification ...............

-----------------------------------------------------------------
Do you wish to continue? [yes/no]: yes
Jan 11, 2007 10:42:59 AM oracle.sysman.emcp.EMConfig updateReposVars
INFO: Updating file C:\oracle\product\10.1.0\Db_1\sysman\emdrep\config\repositor
y.variables ...
Jan 11, 2007 10:43:05 AM oracle.sysman.emcp.util.PortQuery findUsedPorts
INFO: Searching services file for used port
Jan 11, 2007 10:43:08 AM oracle.sysman.emcp.EMConfig addPortEntries
INFO: Updating file C:\oracle\product\10.1.0\Db_1\install\portlist.ini ...
Jan 11, 2007 10:43:09 AM oracle.sysman.emcp.EMConfig updateEmdProps
INFO: Updating file C:\oracle\product\10.1.0\Db_1\sysman\config\emd.properties .
..
Jan 11, 2007 10:43:10 AM oracle.sysman.emcp.EMConfig updateConfigFiles
INFO: targets.xml file is updated successfully
Jan 11, 2007 10:43:10 AM oracle.sysman.emcp.EMConfig updateEmomsProps
INFO: Updating file C:\oracle\product\10.1.0\Db_1\sysman\config\emoms.properties
...
Jan 11, 2007 10:43:10 AM oracle.sysman.emcp.EMConfig updateConfigFiles
INFO: emoms.properties file is updated successfully
Jan 11, 2007 10:43:12 AM oracle.sysman.emcp.EMConfig startOMS
INFO: Starting the DBConsole ...
Jan 11, 2007 10:44:53 AM oracle.sysman.emcp.EMConfig perform
INFO: DBConsole is started successfully
Jan 11, 2007 10:44:53 AM oracle.sysman.emcp.EMConfig perform
INFO: >>>>>>>>>>> The Enterprise Manager URL is http://taj.domainname.lo
cal:5504/em <<<<<<<<<<<>Agent Unreachable

First check agent services is start or not.
e:\>set oracle_sid=db01
e:\>emctl status agent
if stop or not running then start
e:\>emctl start agent
or check log file for more info.
OracleHome\Db_1\localhost_sid\sysman\log
------------------------------------------------------------

Io exception: SO Exception was generated
INFO: Block size for SYSAUX is greater than or equal to 8K
INFO: Job queue size is greater than or equal to 10

or check log file for more info.
Oracle_Home\Db_1\cfgtoollogs\emca_repos_xxxx.log
For above error because of your not drop repository properly.

SQL> DECLARE
2 CURSOR c1 IS
3 SELECT owner, synonym_name name
4 FROM dba_synonyms
5 WHERE table_owner = 'SYSMAN';
6
7 BEGIN
8 FOR r1 IN c1
9 LOOP
10 IF r1.owner = 'PUBLIC' THEN
11 EXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM 'r1.name;
12 ELSE
13 EXECUTE IMMEDIATE 'DROP SYNONYM 'r1.owner'.'r1.name;
14 END IF;
15 END LOOP;
16 END;
17 /

PL/SQL procedure successfully completed.

SQL> DROP ROLE mgmt_user;

Role dropped.

SQL> drop user mgmt_view cascade;

User dropped.

SQL> drop user sysman cascade;

User dropped.

------------------------------------------------------------------
After drop complete repository you can create new repository through EMCA.
E:\>emca

STARTED EMCA at Thu Jan 11 18:13:11 GST 2007
Enter the following information about the database to be configured
Listener port number: 1521
Database SID: db01
Service name: db01
Email address for notification:
Email gateway for notification:
Password for dbsnmp:
Password for sysman:
Password for sys: :
Password for sys:
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ C:\oracle\product\10.1.0\Db_1
Enterprise Manager ORACLE_HOME ................ C:\oracle\product\10.1.0\Db_1

Database host name ................ taj.domainname.local
Listener port number ................ 1521
Database SID ................ db01
Service name ................ db01
Email address for notification ...............
Email gateway for notification ...............

-----------------------------------------------------------------
Do you wish to continue? [yes/no]: yes
DBConsole is already configured for the database db01
Would you like to re-configure DBConsole for the specified database? [yes/no]: y
es
Make sure that DBConsole has been shutdown
When you are ready to continue, press

Jan 11, 2007 6:13:27 PM oracle.sysman.emcp.EMConfig updateReposVars
INFO: Updating file C:\oracle\product\10.1.0\Db_1\sysman\emdrep\config\repositor
y.variables ...
Jan 11, 2007 6:19:07 PM oracle.sysman.emcp.EMConfig createRepository
INFO: Creating repository ...
Jan 11, 2007 6:19:07 PM oracle.sysman.emcp.EMConfig perform
INFO: Repository was created successfully
Jan 11, 2007 6:19:15 PM oracle.sysman.emcp.EMConfig stopOMS
INFO: Stopping the DBConsole ...
Jan 11, 2007 6:19:21 PM oracle.sysman.emcp.EMConfig addPortEntries
INFO: Updating file C:\oracle\product\10.1.0\Db_1\install\portlist.ini ...
Jan 11, 2007 6:19:21 PM oracle.sysman.emcp.EMConfig updateEmdProps
INFO: Updating file C:\oracle\product\10.1.0\Db_1\sysman\config\emd.properties .
..
Jan 11, 2007 6:19:23 PM oracle.sysman.emcp.EMConfig updateConfigFiles
INFO: targets.xml file is updated successfully
Jan 11, 2007 6:19:23 PM oracle.sysman.emcp.EMConfig updateEmomsProps
INFO: Updating file C:\oracle\product\10.1.0\Db_1\sysman\config\emoms.properties
...
Jan 11, 2007 6:19:23 PM oracle.sysman.emcp.EMConfig updateConfigFiles
INFO: emoms.properties file is updated successfully
Jan 11, 2007 6:19:34 PM oracle.sysman.emcp.EMConfig startOMS
INFO: Starting the DBConsole ...
Jan 11, 2007 6:21:13 PM oracle.sysman.emcp.EMConfig perform
INFO: DBConsole is started successfully
Jan 11, 2007 6:21:13 PM oracle.sysman.emcp.EMConfig perform
INFO: >>>>>>>>>>> The Enterprise Manager URL is http://taj.domainname.lo
cal:5504/em <<<<<<<<<<<>


Note : In 10.1.0.2.0 RepManager is not working properly so that we are not able to use below command.

emca -config dbcontrol db -repos recreate

If is working in 10.1.0.3.0
for you have to manully drop repository and create again.

Related Links

1. http://dbataj.blogspot.com/2007/07/error-during-dbconsole-shutting-down.html

2. http://dbataj.blogspot.com/2007/07/change-sysman-password.html

3. http://dbataj.blogspot.com/2007/07/e-mail-notification.html

4. http://dbataj.blogspot.com/2007/06/enabling-isqlplus-dba-access.html

5. http://dbataj.blogspot.com/2007/04/export-database-with-sysdba-role.html


Posted by 1010
02.Oracle/DataBase2008. 7. 21. 11:30
반응형

enterprise manager start error

Postby amgad_go on Mon Jun 09, 2008 2:13 am

Dear Tim
I just installed Oracle 10.0.2 on fedora 9 and the installation was successful;
later i 'm trying to start the enterprise manager using this command
emctl start

i get this error

TZ set to Canada/Eastern
Exception in getting local host
java.net.UnknownHostException: f9.localdomain: f9.localdomain
at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4983)
at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3758)
Exception in getting local host
java.net.UnknownHostException: f9.localdomain: f9.localdomain
at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4983)
at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3758)
EM Configuration issue. /u01/app/oracle/product/10.2.0/db_1/f9.localdomain_DB11G not found.

I'm new to both Linux and Oracle and i don't know how to trouble shoot this kind of error

please help :) :)
thanks
Amgad
amgad_go
Member
Posts: 3
Joined: Thu Jun 05, 2008 2:18 pm

Re: enterprise manager start error

Postby Salman on Mon Jun 09, 2008 6:48 am

You command is incomplete, the complete command is as follows
emctl start dbconsole

BUT
this error message is not because of incomplete command. I think you might have some miss configuration with your hostname. You need to make sure that you have correct hostanem in /etc/hosts and also correct name secified for this host which should be "f9.localdomain"
Posted by 1010
02.Oracle/DataBase2008. 7. 21. 09:27
반응형

iSQL*Plus를 이용한 데이타베이스 접근

iSQL*Plus는 SQL*Plus의 웹 기반 버전입니다. iSQL*Plus를 사용하려면, OEM 콘솔의 Related Links 섹션에 있는 iSQL* Plus 링크를
클릭하거나, 설치 과정에서 제공된 iSQL*Plus URL을 브라우저에 입력합니다.

Ex:
http://ds1.orademo.org:5560/isqlplus (데이타베이스에 DNS가 설정되지 않은 경우, 호스트 네임 대신 IP 주소를 입력해야 합니다.)

User Name: SYSTEM
Password: <설치과정에서 입력한 패스워드>

을 클릭합니다.

Workspace 박스에 SQL 명령을 입력한 뒤 Execute를 클릭합니다.

figure 7

iSQL*Plus의 시작 및 중단:

$ isqlplusctl start
$ isqlplusctl stop
Posted by 1010
02.Oracle/DataBase2008. 7. 21. 09:27
반응형

Oracle Enterprise Manager 10g Database Control의 사용

웹 브라우저에서 설치과정에서 제공된 URL을 입력합니다.

Ex:
http://ds1.orademo.org:5500/em (데이타베이스에 DNS가 설정되지 않은 경우, 호스트 네임 대신 IP 주소를 입력해야 합니다.)

User Name: SYS
Password: <설치과정에서 입력한 패스워드>
Connect As: SYSDBA

을 클릭합니다

figure 6

Oracle Enterprise Manager 10g Database Control의 놀라운 세계에 오신 것을 환영합니다!

Oracle Enterprise Manager Database Control의 시작 및 중단:

$ emctl start dbconsole
$ emctl stop dbconsole
Posted by 1010