Search

My notebook

Month

November 2014

Forgot SYS password in oracle 11g

Log on to your Windows server as a member of the Administrators group or a member of the ORA_DBA group.
Try the below steps

sqlplus /nolog
connect / as sysdba
Once connected, you can change the SYS password to something you know:
ALTER USER sys IDENTIFIED BY new_password;

Install WordPress

yum -y install mysql-server httpd php php-mysql unzip wget
chkconfig httpd on
chkconfig mysqld on
/etc/init.d/mysqld start
/etc/init.d/httpd start

mysql -u root -p
CREATE USER wordpress@localhost IDENTIFIED BY “wordpress”;
OR SET PASSWORD FOR wordpress@localhost= PASSWORD(“wordpress”);

create database wordpress;
GRANT ALL ON wordpress.* TO wordpress@localhost;
FLUSH PRIVILEGES;

/etc/httpd/conf/httpd.conf

<VirtualHost *:80>
ServerAdmin tecmint@tecmint.com
DocumentRoot /var/www/html/wordpress
ServerName wordpress
ErrorLog /var/log/httpd/wordpress-error-log
CustomLog /var/log/httpd/wordpress-acces-log common
</VirtualHost>

service httpd restart

# cd /var/www/html/wordpress
# cp wp-config-sample.php wp-config.php

# vi wp-config.php
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘database_name_here’);

/** MySQL database username */
define(‘DB_USER’, ‘username_here’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘password_here’);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);

cp examples

cp -r *[^msg_archive.ibd]* /mysqlData/db1/
cp -a `ls |grep -v msg_archive.ibd` /vastdata2/db1/imsc/

from inside db1 directory run:

1.cp -a `ls |grep -v imsc` /vastdata2/db1/

from inside imsc directory run:

2.create imsc directory
3.cp -r *[^msg_archive.ibd]* /mysqlData/db1/imsc/

Cisco

#######configure dhcp server

config t

service dhcp

ip dhcp pool <POOL-NAME>

network 192.168.1.0 255.255.255.0

default-router 192.168.1.1

dns-server <DNS-SERVER>

domain-name <NAME>

lease <LEASE-DAYS>

write mem

show ip dhcp binding
#########bring interface up

config t

interface <INTERFACE-NAME>

no shutdown

##########assign ip to interface
config t

interface <INTERFACE-NAME>

ip address <IP> <NETMASK> #static

ip address dhcp #dynamic
###########configure route

ip route 10.115.24.0 255.255.255.0 10.115.9.2

exit

write mem

Blog at WordPress.com.

Up ↑