Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

h8dk97 : member's tip(s)


   Found 202 tips, Displaying 111 - 120 
 
Sort by 
 
 Remove an element from array
An easy way of removing an array element in PHP script is to use function array_diff. For example:
 More...
06/19/06
 
 
Category : Programming > PHP > Strings and Arrays
 
 
 Script to view URLs through HTTP proxy server
This PHP function allows to view / download contents from websites on the Internet through a proxy server, with or without proxy authentication. If no username / password supplied to the function it will assume that proxy server does not require authentication.
 More...
06/07/06
 
 
Category : Programming > PHP > HTTP
 
 
 How to open Oracle standby database
To open standby database you must activate it first: SQL> alter database activate standby database; SQL> alter database mount; SQL> alter database open;
     
More...

05/12/06
 
 
Category : Databases > Oracle > DR
 
 
 How to force user choose a new password
Run this from sqlplus to force Oracle user choose a new password when he/she logs in next time: SQL> ALTER USER username PASSWORD EXPIRE;
 More...
05/11/06
 
 
Category : Databases > Oracle > Security
 
 
 How to unlock Oracle user account
Here's how to lock or unlock Oracle database user accounts. SQL> ALTER USER username ACCOUNT LOCK; SQL> ALTER USER username ACCOUNT UNLOCK;
     
More...

05/11/06
 
 
Category : Databases > Oracle > Security
 
 
 Generate drop schema indexes script
I use the below script to drop indexes before running complete refresh in Oracle database. Before dropping the indexes I run export without rows so that indexes can be re-created (get sql script from export dump) after snapshots have been refreshed. -- -- Replace USERNAME with the actual username -- set head off pagesize ...
 More...
05/10/06
 
 
Category : Databases > Oracle > Replication
 
 
 Example exp parfile for Oracle full export
Here's an example of parfile for exporting the whole database without data (no rows): FILE=DBNAME.dmp COMPRESS=N ROWS=N LOG=DBNAMEexp.log FULL=Y Run from command line: $ . oraenv $ ORACLE_SID = [DBNAME] ? $ $ exp parfile=DBNAMEexp.par Export: Release 8.1.7.4.0 - Production on Wed May 10 10:20:48 2006 (c) Copyright 2000 Oracle Corporation. All rights reserved. Username: / as sysdba
     
More...

05/10/06
 
 
Category : Databases > Oracle > exp
 
 
 List all database links
Show all db links in Oracle database. -- -- I'm sick and tired of typing this almost every day, so here we go, from now on -- I will just copy and paste. Hope this may be useful for others too. -- col OWNER format a12 col DB_LINK format a12 col USERNAME format a12 col HOST format a12 select ...
     
More...

05/10/06
 
 
Category : Databases > Oracle > Replication
 
 
 Script to generate creation of snapshots
Generate Oracle snapshots using the script below. It will check tablespaces for materialized view logs and place the snapshots in the appropriate tablespaces (if you follow the Oracle's recommendation to use different tablespaces for differently sized segments). This script is to be run on spanshotlog site. set head off verify off ...
 More...
05/04/06
 
 
Category : Databases > Oracle > Replication
 
 
 Using Oracle statspack
STATSPACK has two adjustable parameters: level and threshold. Level is the type of data collected and threshold acts as a filter for collecting SQL statements. You can use this query to view all levels: SQL> SELECT * FROM stats$level_description ORDER BY snap_level; Level 0 This level captures general statistics, including rollback segment, row ...
 More...
04/26/06
 
 
Category : Databases > Oracle > Performance Tuning
 
 


<< 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Page 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 >>

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com