Posted
Filed under Link
vi /etc/ssh/ssh_config
ServerAliveInterval 60
service sshd restart
2018/12/21 10:10 2018/12/21 10:10
Posted
Filed under Link
1. 서버를 운영하다보면, 시스템의 메모리가 꽉차서 ... 재시작  을 해야되는 상황이 생긴다.
  해결책은 단순 하다 재부팅 (reboot)하면 되겠지만. 잘 운영되는 서버를 리붓 하기에는 서비스 지연이 생길 수 있고 부담이 발생한다.
 그래서 버서가 느려진다면, 아래 명령어를 통해서 매모리를 최적화 시켜준다. 

  echo 1  >/proc/sys/vm/drop_caches
  echo 2  > /proc/sys/vm/drop_caches
  echo 3  > /proc/sys/vm/drop_caches


/usr/local/memory/memory_init.sh
chmod 755 ./memory_init.sh

크론탭 등록
00 08 * * * root /usr/local/memory/memory_init.sh
00 12 * * * root /usr/local/memory/memory_init.sh
00 18 * * * root /usr/local/memory/memory_init.sh

service crond restart


2015/01/12 16:16 2015/01/12 16:16
Posted
Filed under Link

In Part 1 of the HOWTO we built the virtual machine and configured the Oracle Linux 6 operating systems. Here we continue with the Database 12c installation.

In order to install Database 12c your VM has to meet some prerequisites as outlined in the Database Installation Guide for Linux. Most of the pre-installation tasks can be completed by installing the 12cR1 Pre-install RPM. Let’s open a terminal console and install this package.

[root@ol6 ~]# yum install oracle-rdbms-server-12cR1-preinstall.x86_64
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-8.el6 will be installed
...
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================================
 Package                                                             Arch                                  Version                                             Repository                                 Size
===============================================================================================================================================================================================================
Installing:
 oracle-rdbms-server-12cR1-preinstall                                x86_64                                1.0-8.el6                                           ol6_latest                                 15 k
Installing for dependencies:
 compat-libcap1                                                      x86_64                                1.10-1                                              ol6_latest                                 17 k
 compat-libstdc++-33                                                 x86_64                                3.2.3-69.el6                                        ol6_latest                                183 k
 gcc-c++                                                             x86_64                                4.4.7-3.el6                                         ol6_latest                                4.7 M
 ksh                                                                 x86_64                                20100621-19.el6_4.4                                 ol6_latest                                686 k
 libaio-devel                                                        x86_64                                0.3.107-10.el6                                      ol6_latest                                 13 k
 libstdc++-devel                                                     x86_64                                4.4.7-3.el6                                         ol6_latest                                1.6 M

Transaction Summary
===============================================================================================================================================================================================================
Install       7 Package(s)

Total download size: 7.2 M
Installed size: 23 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): compat-libcap1-1.10-1.x86_64.rpm                                                                                                                                                 |  17 kB     00:00
...
Installed:
  oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-8.el6

Dependency Installed:
  compat-libcap1.x86_64 0:1.10-1            compat-libstdc++-33.x86_64 0:3.2.3-69.el6      gcc-c++.x86_64 0:4.4.7-3.el6      ksh.x86_64 0:20100621-19.el6_4.4      libaio-devel.x86_64 0:0.3.107-10.el6
  libstdc++-devel.x86_64 0:4.4.7-3.el6

Complete!
[root@ol6 ~]#

The pre-install RPM automatically creates the Oracle software owner account (named oracle). Let’s set a password for the account.

[root@ol6 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[root@ol6 ~]#

Next you need to create the Oracle base and the Oracle inventory directories:

[root@ol6 ~]# mkdir -p /u01/app/oracle
[root@ol6 ~]# chown -R oracle:oinstall /u01/app/oracle/
[root@ol6 ~]# chmod -R 775 /u01/app/oracle/
[root@ol6 ~]#
[root@ol6 ~]# mkdir -p /u01/app/oraInventory
[root@ol6 ~]# chown -R oracle:oinstall /u01/app/oraInventory/
[root@ol6 ~]# chmod -R 775 /u01/app/oraInventory/

Time to switch to the oracle user. Logout from your current session and login back as oracle.

You will need the Database 12c Release 1 installation for Linux. Start the internet browser inside your virtual machine and go to the Database download section of OTN.

db12c_install_55

Download the two zip files to a convenient location (/home/oracle will do nicely). After both files are in place use unzip to extract their contents.

[root@ol6 ~]$ unzip /home/oracle/*.zip

Run the Oracle Universal Installer by executing:

[root@ol6 ~]$ /home/oracle/database/runInstaller.sh

db12c_install_56

As this is a test installation you do not have to register it with Oracle Support. Uncheck the “I wish to receive security updates via Oracle Support” box and click Next.

db12c_install_57

Select “Skip software updates” and click Next.

db12c_install_58

Select “Create and configure a database” and click Next.

db12c_install_59

Select “Server class” and click Next.

db12c_install_60

Make sure the installation type is set to “Single instance” and click Next.

db12c_install_61

Select “Advanced install” and click Next.

db12c_install_62

Select English for your product language and click Next.

db12c_install_63

Set the edition to Enterprise and click Next.

db12c_install_64

Set the Oracle base to /u01/app/oracle and the Oracle home to /u01/app/oracle/product/12.1.0/dbhome_1.

db12c_install_65

Set the inventory directory to /u01/app/oraInventory and the inventory owner to oinstall.

db12c_install_66

Set the database type to General Purpose and click Next.

db12c_install_67

Set the database name and SID to orcl and uncheck the “Create as Container database” option.

db12c_install_68

Leave the memory settings by default and go to the Character sets tab.

db12c_install_69

Set the database character set to Unicode (AL32UTF8).

db12c_install_70

At the Sample schemas tab select the “Create database with sample schemas”. This will install some sample data that you can experiment with.

db12c_install_71

Select File system as the database storage option and set the path to /u01/app/oracle/oradata.

db12c_install_72

You have no Cloud Control installation in this test setup, so skip the registration and click Next.

db12c_install_73

Do not enable the archivelog mode. Click Next.

db12c_install_74

Select “Use the same password for all accounts” and set the system password for your database.

db12c_install_75

Set all the groups to dba and click Next.

db12c_install_76

The installer presents you with a summary of the upcoming installation. Click Install.

db12c_install_77

Give the installer some time to copy the oracle binaries to the specified location.

db12c_install_78

At some point you will be asked to execute a pair of configuration scripts. Open a terminal console, become root and run the scripts in the specified order.

[oracle@ol6 ~]$ su -
Password: 
[root@ol6 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@ol6 ~]# /u01/app/oracle/product/12.1.0/dbhome_1/root.sh
Performing root user operation for Oracle 12c

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/12.1.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
[root@ol6 ~]# 

Close the terminal and click OK in the Execute configuration scripts dialog.

db12c_install_79

After the database binaries are in place the installer will launch the Database Configuration Assistant (DBCA). The assistant will create the orcl database and will insert the sample data into it.

db12c_install_80

When DBCA completes it will display a dialog with the address of your Enterprise Manager console. Take a note of the URL and click OK.

db12c_install_81

The installation is now completed. Click Close to exit the installer.

Open a browser and type in the Enterprise Manager URL.

db12c_install_82

Login as user system (use the system password you set during the database installation).

db12c_install_83

You can see your Database 12c up and running.

2014/01/22 12:32 2014/01/22 12:32
Posted
Filed under Link

1. / 파티션의 용량이 거의 없어 증설을 해야 함.

2. 늘어나는 디렉토리는 /home 과 /usr 임

3. /var 의 용량을 너무 과다하게 잡음 (다른 쪽으로 돌리거나 합쳤으면 함)


하드를 구매하신다고 하셨으니 /dev/sdb 로 붙겠죠. (/dev/hda, hdb로 붙을수도 있고)

/dev/sdb로 붙는 가정하에 설명을 드리겠습니다.


일단은 하드를 붙이는 작업 해야겠죠.


PART 1. disk 추가 작업


1. computer의 전원을 끈다. (init 0, or # poweroff)

2. disk를 slave (jumper 조절)로 두고 케이블 연결한다.

3. 전원을 켠다.

4. # fdisk -l 로 보면 /dev/sdb (or hda, hdb)등으로 붙은 것을 확인하실 수 있습니다.


PART 2. 파티셔닝 작업


개요. 이 부분이 문제가 되는데요. 생각해 봐야 할 것이 새로 붙인 파티션을 어디다가

둘 것인가가 문제가 될 것입니다. 새로 하드 디스크를 만드시는 것이니 아마 못해도

20~ 30기가 정도는 되는 하드 디스크라 생각됩니다.

제가 만일 같은 시스템에 구성을 하게 된다면 새로 생성하는 디스크에 3개의 파티션을

두겠습니다. /home, /usr, /var

이렇게 두고 지금 있는 20기가의  (/var) 공간은 백업으로 두면 어떨까 싶습니다.

다른 방법은 저 20기가 부분을 /home으로 둘수도 있는데 그건 잠시 후에 설명을 드리겠습니다.


1. 디스크 파티셔닝을 합니다. (가정 : /home = 20G, /usr= 20G로 잡음, 물론 사이즈 변경 가능)

# fdisk /dev/sdb

Command (m for help): p (화면에 파티션 내용이 표시됩니다. 하나도 없기 때문에 아무 내용도 없습니다. 만일 있다면 지워 줍니다.)

Command (m for help): n (새로 공간을 추가합니다.)

Command action
   e   extended
   p   primary partition (1-4)

p 를 입력합니다. (기본 파티션에 할당해야 합니다. )

Partition number (1-4): 1 (첫번째 파티션에 할당합니다. )

First cylinder (1-29660, default 1):  (1번 실린더부터 시작입니다. default가 1이라 그냥엔터입력)

Last cylinder or +size or +sizeM or +sizeK (1-29660, default 29660): +20g  (+20g라고 입력하고 엔터를 칩니다.) 20기가 용량을 사용하겠다는 이야기입니다.)

다시 p로 확인해 보면 20기가가 생성이 된 것을 보실 수 있습니다.


이런 식으로 다른 파티션도 잡아 줍니다.

지금 생성하고자 하는 볼륨은 3개 입니다. (/home, /usr, /var)

따라서 primary 파티션에 3번까지 쓸 수 있습니다.

모든 파티션을 primary로 사용한다면 4개까지밖에 생성할 수 없습니다.

만일 디스크 용량이 많아 더 많은 파티션을 추가로 할 수 있다면 3번 primary 이후에 4번을 extention으로 주셔야 합니다. (그래야 16개까지 사용할 수 있습니다.)


파티셔닝이 되었고 disk가 /dev/sdb1 = 20g, /dev/sdb2=15g, /dev/sdb3=5g 정도로

잡혀 있다고 가정을 합니다.


2. 포맷


리눅스에서 사용하기 위해서 포맷을 합니다.

# mkfs.ext3 /dev/sdb1

# mkfs.ext3 /dev/sdb2

# mkfs.ext3 /dev/sdb3


PART 3. 디스크 복사 작업


일단 /home 부터 작업을 합니다.


1. mkdir /home2   // (처음 20기가를 마운트해서 copy할 공간을 만들어 줍니다.)

2. mount  -t ext3 /dev/sdb1 /home2  // (ext3로 포맷된 디스크 볼륨 sdb1을 /home2에 마운트)

3. df -h 로 확인해 보시면 마운트 되어 있는 것을 확인하실 수 있습니다.

4. copy 작업

# cp -aruv /home/*  /home2/     // (홈 디렉토리 밑에 있는 모든 파일과 디렉토리들을 권한을 유지하여 /home2 밑으로 복사합니다.)

5. 이름 변경 작업

# mv /home  /home_bak      // ( /home2를 /home으로 옮기기 위해 기존에 있는 /home을 변경합니다.)

6. # mv /home2 /home     // (home2디렉토리를 /home으로 변경합니다.)

7. 이제 부팅해도 자동으로 마운트를 시키기 위해 /etc/fstab에 등록해 줍니다.

# vi  /etc/fstab

 /dev/sdb1               /home            ext3    defaults        1 1 요렇게 한줄 추가시켜 줍니다.

이렇게 하면 부팅 후에도 /home은 자동으로 올라오게 됩니다.

2009/08/31 14:43 2009/08/31 14:43
Posted
Filed under Link
http://www.jango.com

무료로 음악을 들을 수 있으며, 다운로드는 불가능.
flashplay 로 음악 링크가 된다.
2009/08/25 12:57 2009/08/25 12:57
Posted
Filed under Link
http://www.w3.org/WAI/eval/selectingtools
w3c.org에 등록 되어있는 웹접근성 툴 리스트
2009/07/28 09:10 2009/07/28 09:10
Posted
Filed under Link

http://actionscript.org 
flash action script 관련 예제 자료들이 많이 있음

2009/07/18 11:45 2009/07/18 11:45
Posted
Filed under Link
http://www.w3schools.com/Ajax/ 
picture AJAX stands for Asynchronous JavaScript And XML. AJAX is a type of programming made popular in 2005 by Google (with Google Suggest). AJAX is not a new programming language, but a new way to use existing standards. With AJAX you can create better, faster, and more user-friendly web applications. AJAX is based on JavaScript and HTTP requests. Start learning AJAX now!
2009/07/17 20:24 2009/07/17 20:24