반응형

http://kr.forums.oracle.com/forums/thread.jspa?threadID=470516
마지막에 이 글..
One thought on the base error: don't set Oracle environment variables with putenv in your PHP scripts. Make sure they are set in the shell that starts Apache.


즉, putenv사용하지말라

윈독도 마찬가지
PATH를 잡고
ORACLE_HOME을 직접 환경변수에 추가 하되
putenv를 쓰지말라.
반응형
반응형
반응형
반응형

먼저 압축 파일을 푼후 디록토리를 phpMyAdmin 이라고 하면.

1) config 라는 디렉토리를 만듭니다.
  예) mkdir phpMyAdmin/config

2) config 디렉토리의 권한변경
  예) chmod o+rw phpMyAdmin/config

3) 설치스크립터를 실행
  예) 홈피/phpMyAdmin/scripts/setup.php

4) 설치스크립터 화면에서 ADD후 선택작업 후 SAVE한다.

5) config 디렉토리에 config.inc.php 가 생겨 있으면 phpMyAdmin으로 COPY 한다.

6) 홈피/phpMyAdmin 으로 접속한다.
반응형
반응형


꾸준히 업데이트 되고 있으며 웹상에서 MySQL을 관리 할 수 있는 강력한 툴인 phpMyAdmin
2.9.1.1 버전의 간단한 설치 방법입니다. 2.8 버전부터 설치 방법이 바뀌었는데 방법이 복잡하기도
할 뿐더러 아직 그 방법은 익숙하지 않아 이전과 같은 방법으로 설정해서 사용할 수 있는 방법을
소개해드릴까 합니다. 설치하는 방법은 그리 어렵지 않으니 아래 내용을 보고 따라해보시기 바랍니다.

우선 phpMyAdmin 최신 버전을 다운 받습니다. [ 다운받기 ]
다운 받으신 압축 파일을 압축해제하시고 libraries 폴더의 config.default.php 파일을 libraries 폴더의
상위 폴더로 복사합니다. 이때 이름은 config.inc.php 로 하시면 됩니다.

config.inc.php 파일을 메모장이나 기타 에디터 프로그램으로 열어 몇가지를 수정해 줍니다.

$cfg['blowfish_secret'] = ''; 부분을 $cfg['blowfish_secret'] = 'cookie'; 로 수정해 줍니다.
$cfg['Servers'][$i]['auth_type']     = 'config'; 에서 config 부분을 cookie로 수정합니다.

이렇게 수정하시고 계정에 올려서 phpMyAdmin 경로로 접속하셔서 인증 화면이 나오면
정상적으로 설치가 완료된 것입니다.

더 자세한 내용은 http://www.phpmyadmin.net/home_page/docs.php 를 참고하세요.
반응형
반응형


Check out RFC 2821
you are supposed to use the codes defined in RFC 3463 (or 1893)


----------------------
In general, you have to look at your options and choose the one that
most closely approximates what you are trying to communicate. In the
set of 4xx messages you have:



421 Service not available
432 Password required
450 Mailbox unavailable/busy
451 Local error in processing
452 Insufficient storage
453 You have no mail
454 TLS not available temporarily
458 Unable to queue message temporarily
459 Node X not allowed

Of all of those, 452 jumps out as the only one that obviously has
something to do with storage limits. In attempting to communicate more
accurately the cause of the error to the user, you are supposed to use
the codes defined in RFC 3463 (or 1893); in this case, 4.2.2 (or
5.2.2, though the RFC says that it *should* be considered a
"persistent transient error") communicates "mailbox full".



Of the 5xx errors defined in SMTP, there are:

500 Syntax error
501 Syntax error in parameters
502 Command not implemented
503 Bad sequence
504 Parameter not implemented
521 Machine does not accept mail
530 Authentication required
534 Authentication mechanism too weak
538 Encryption required
550 Mailbox unavailable permanently
551 User not local
552 Message too big
553 Mailbox name not allowed
554 Transaction failed



반응형
반응형

order by cast(mid as unsigned) asc

반응형
반응형

set allow_url_fopen to On in php.ini, or to true using ini_set.

allow_url_fopen = On 으로 한 후 아파치 재시작 ㄱㄱ
반응형

'Tip & Tech > Both | Other' 카테고리의 다른 글

smtp 에러 규약  (0) 2010.10.20
문자로 된 숫자 정렬 방법  (0) 2010.10.20
오라클 instant client 설치 법  (0) 2010.10.20
오라클 create, alter, delete  (0) 2010.10.20
오라클 index로 잡힌 pk 삭제 법.  (0) 2010.10.20
반응형
반응형
반응형

------------------------------------------
--tablespace
------------------------------------------
--생성
CREATE TABLESPACE kimtest
DATAFILE '$ORACLE_BASE/oradata/green/kimtest.dbf' SIZE 50M AUTOEXTEND ON NEXT 5M;

--수정
ALTER DATABASE DATAFILE '$ORACLE_BASE/oradata/green/cmsdemo.dbf' AUTOEXTEND ON NEXT 10M MAXSIZE 10000M;

--삭제
DROP TABLESPACE kimtest INCLUDING CONTENTS;

--이동 (table을 tablespace 이동
ALTER INDEX 인덱스_이름 REBUILD TABLESPACE 옮길_테이블스페이스_이름;

--보기 (system 전체 tablespace)
SELECT  tablespace_name, file_name, bytes
FROM    dba_data_files;

--보기 (유저 table 목록 보기)
SELECT * FROM tab;

------------------------------------------
--user
------------------------------------------
--생성
CREATE USER kimtest IDENTIFIED BY kimtest DEFAULT TABLESPACE kimtest;

--권한주기
GRANT CONNECT, RESOURCE, CREATE TABLE TO kimtest;

--삭제(include user's tables)
DROP USER kimitest cascade;

--보기 (oracle server 접속 유저 보기)
select * from v$session where type = 'USER'


------------------------------------------
--Exporting & Importing
------------------------------------------
--Database
# exp system/manager file=wcms4.dmp full=y log=wcms4.log
  (compress=y grants=y rows=y)
  (rows=n : only schema backup)
# imp system/manager file=wcms4.dmp full=y commit=y
  (grants=y rows=y)

--User Object
# exp system/manager file=wcms4.dmp owner=wcms4
# imp system/manager file=wcms4.dmp fromuser=wcms4 touser=wcms4 commit=y
  (full=n grants=y rows=y)

--Tablespace
# exp system file=wcms4_1.dmp tablespaces=wcms4
# imp system file=wcms4_1.dmp tablespaces=kimi fromuser=wcms4 touser=kimi
# imp system file=jongno-wcms4-20040202.dmp fromuser=cmsuser touser=jongnoweb


------------------------------------------
--Oracle 시작과 종료
------------------------------------------
-- # lsnrctl start
-- # dbshut
-- # sqlplus /nolog
-- SQL> connect /as sysdba
-- SQL> startup
-- SQL> shutdown immediate
------------------------------------------



------------------------------------------
--Table
------------------------------------------
-- 속성보기
DESC MYTABLE;



-- 현재 사용자의 테이블 스페이스와 테이블 보기

select tablespace_name, table_name from tabs;





기타

◆ DB에 있는 모든 Table 이름보기

select table_name from user_tables



◆ Table의 Primary Key 찾기

select * from user_ind_columns where table_name = 'CodeTable'



◆ 서로 연결되는 Key를 찾는 방법

select constraint_name, constraint_type, r_constraint_name

from user_constraints where table_name = 'TABLE_NAME



◆ Constraint 확인

select table_name, constraint_name, constraint_type

from user_constraints

where table_name in ('DEPARTMENT','EMPLOYEE');



◆ Parameter정보 보기 (한/영코드값, 버젼정보등을 볼수있다.)

select * from nls_database_parameters
반응형
반응형

alter table pk가 잡힌 테이블
drop constraint 인덱스명;
--- 참고 ---
dsn링크입니다.
http://database.sarang.net/?inc=read&aid=22249&criteria=oracle&subcrit=&id=&limit=20&keyword=index+%BB%E8%C1%A6&page=3
반응형

'Tip & Tech > Both | Other' 카테고리의 다른 글

오라클 instant client 설치 법  (0) 2010.10.20
오라클 create, alter, delete  (0) 2010.10.20
오라클 테이블 스페이스 만들기.  (0) 2010.10.20
MySQL Dump & Restore  (0) 2010.10.20
오라클 오류번호-설명  (0) 2010.10.20

+ Recent posts