ALTER USER foo WITH PASSWORD 'bar';Reference: PostgreSQL
2012年8月16日 星期四
修改PostgreSQL使用者的密碼
下面例子是把使用者'foo'的密碼改為'bar'.
標籤:
command,
password,
postgresql
2011年9月5日 星期一
2011年4月21日 星期四
Postgresql commands
mysql: SHOW TABLES postgresql: \d mysql: SHOW DATABASES postgresql: \l mysql: SHOW COLUMNS postgresql: \d tableReference: Linux Screw
標籤:
command,
postgresql
2011年2月20日 星期日
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
訂閱:
文章 (Atom)