顯示具有 command 標籤的文章。 顯示所有文章
顯示具有 command 標籤的文章。 顯示所有文章

2012年8月16日 星期四

修改PostgreSQL使用者的密碼

下面例子是把使用者'foo'的密碼改為'bar'.
ALTER USER foo WITH PASSWORD 'bar';
Reference: PostgreSQL

2011年9月5日 星期一

SVN Relocate指令

svn cleanup
svn switch --relocate ${FROM} ${TO}
Reference: ichiayi

2011年4月21日 星期四

Postgresql commands

mysql: SHOW TABLES
postgresql: \d

mysql: SHOW DATABASES
postgresql: \l

mysql: SHOW COLUMNS
postgresql: \d table
Reference: Linux Screw

2011年2月10日 星期四

Basic commands of Oracle

# find the tnsnames.or file
echo $ORACLE_HOME
vim $ORACLE_HOME/network/admin/tnsnames.ora

####################################################################
# the tnsnames.ora file could like the following text
# 'informatica11g' is its tnsname of Oracle
####################################################################
# informatica11g=
#  (DESCRIPTION =
#    (ADDRESS = (PROTOCOL = TCP)(HOST = ${IP} )(PORT = ${PORT}))
#    (CONNECT_DATA =
#      (SERVER = DEDICATED)
#      (SERVICE_NAME = orcl)
#    )
#  )

# start Oracle
dbstart $ORACLE_HOME

# enter SQL mode
sqlplus system@informatica11g

####################################################################
# reverse engineering side config
####################################################################
vim /cygdrive/e/app/b/product/11.2.0/client_2/network/admin/tnsnames.ora

2011年1月5日 星期三

Turn off firewall and SELinux on Centos 5.5

# disable selinux
setenforce 0

# disable firewall
/etc/init.d/iptables stop