純粹筆記!!!!!
1.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
02. Ora9 EDIT
[A]
Command
sqlplus
sys as sysdba
w12345
shutdown immediate;
startup
startup mount; (single mode)
alter database open; (多工mode)
[B]
啟動資料庫連線
LSNRCTL START
[C]
listener.ora
[D]
1、 create pfile='d:/pfile' from spfile;
2、修改pfile檔,裏面加入*._allow_resetlogs_corruption=TRUE
3、Startup nomount pfile='d:/pfile';
4、Alter database mount;
5、Recover database until cancel;
6、Alter database open resetlogs;
7、Select * from test1;
[E]
UNDOTBS01.DBF文件太大的解決辦法
1) recover datafile '/usr/oradata/kelong70/undotbs01.dbf' ;
2) alter database datafile '/usr/oradata/kelong70/undotbs01.dbf' online;
3) create undo tablespace undotbs2 datafile '.............' size ..m ; (from above post)
4) alter system set undo_tablespace=undotbs2 scope=both;
5) alter system set undo_management=auto scope = spfile;
6) shutodwn immediate;
7) startup;
8) drop tablespace undotbs1 including contents and datafiles;
解決辦法:
1.升級到9205
2.停止undo tablespace
3.縮小undo tablespace
-- undo tablespace
create undo tablespace undotBS2 datafile 'C:\oracle\oradata\eoffice\UNDOTBS1.DBF' size 100m;
-- 建置新的空間 undo_tablespace
alter system set undo_tablespace=undotBS2;
-- Drop 原有空間
drop tablespace undotbs1 including contents;
--查看所有表格空間
select * from dba_tablespaces
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
01. Ora8 SetUpb
[A]
1.Oracle Database Assistant
2.Create a database
3.Custom
4.Advanced Replication
5patabase Name=orcl(wttt)
SID = orcl(wttt)
Initialization Filename d:\orant\database\initorcl
Password = w12345
7.預設值
[B]
1.開啟<服務>
2.啟動 OracleServiceORC
OracleStartORCLE
OracleTNSListener80
<啟動.自動>
[C]
1.Administrator Toolbar
2.標題->Customize->Database
3.Service = Oracle
Default <勾選>
User = SYSTEM
Password = Manage
[D]
Storage 擴充區塊
Rb0 2000
Rb1 2000
Sysrol 2000
[E] initwttt.ora
-》OPEN_CURSORS = 200
[F] 中文問題
C:\winnt\regedit
HKEY_LOCAL_MACHINE
SOFTWARE
ORACLE
NLS_LANG
"TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5"
改成 "AMERICAN_AMERICA"
2015年5月15日 星期五
2015年4月30日 星期四
USB 隨身碟清理磁區WIN7
DOS COMMAND
執行
diskpart
list disk
select disk "NUM"
選擇空間有問題的隨身碟後輸入:
clean
即開始清除USB隨身碟的資料
再執行建立磁區輸入:
create partition primary
選擇空間有問題的隨身碟後輸入:
clean
即開始清除USB隨身碟的資料
再執行建立磁區輸入:
create partition primary
Ubuntu 時間及時區設定
# 執行時區設定指令,選擇您要設定的時區: sudo tzselect
第5項ASIA TAIPEI第43時區
第5項ASIA TAIPEI第43時區
# 更換系統時區檔: sudo ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
# 讓本機系統時間連線至網路時間伺服器對時: sudo ntpdate pool.ntp.org
# 更新 主機 BIOS 的時間 : sudo hwclock -w
# 編輯排程,輸入以下範例行,系統將匯入排程每日對時一次:
sudo crontab -e
@daily /usr/sbin/ntpdate pool.ntp.org > /dev/null
# 讓本機系統時間連線至網路時間伺服器對時: sudo ntpdate pool.ntp.org
# 更新 主機 BIOS 的時間 : sudo hwclock -w
# 編輯排程,輸入以下範例行,系統將匯入排程每日對時一次:
sudo crontab -e
@daily /usr/sbin/ntpdate pool.ntp.org > /dev/null
2015年4月20日 星期一
MAC 使用 ssh 連線設定特殊port方式&mac下清除ssh連線所產生的key
MAC 使用 ssh 連線設定特殊port方式
範例:文字模式下請輸入
ssh -p OOOOO OOO@domain.com.tw
Port Number 帳號 位置
mac下清除ssh連線所產生的key
桌面下按 蘋果鍵+shift+G 輸入 ~/.ssh/ 將裡面的known_hosts 刪除即可解決無法ssh連線主機問題!
範例:文字模式下請輸入
ssh -p OOOOO OOO@domain.com.tw
Port Number 帳號 位置
mac下清除ssh連線所產生的key
桌面下按 蘋果鍵+shift+G 輸入 ~/.ssh/ 將裡面的known_hosts 刪除即可解決無法ssh連線主機問題!
2014年12月11日 星期四
MYSQL 主機修改解除連線限制
MySQL修改限制本機LOCALHOST以外主機可連線,將 my.cnf 編輯裡
bind-address = localhost or 127.0.0.1 ------>本機IP 192.168.X.X or 0.0.0.0
重新啟動MYSQL即可!
bind-address = localhost or 127.0.0.1 ------>本機IP 192.168.X.X or 0.0.0.0
重新啟動MYSQL即可!
UBUNTU 12.04 SAMBA NAS 指令使用方式
Ubuntu Clients
sudo apt-get install samba
sudo apt-get install nautilus-share
Connecting using CIFS
The following will mount the myshare folder on myserver to ~/mnt (it will be in your home directory):
mkdir ~/mnt sudo mount -t cifs //myserver_ip_address/myshare ~/mnt -o username=samb_user,noexec
Note: "samba_user" = the user name on the samba server (may be different from your log-in name on the client).
教學擷取於 UBUNTU https://help.ubuntu.com/community/Samba/SambaClientGuide
訂閱:
意見 (Atom)