The Kat's Work - Blog
Main | Blog | Registration | Login
Friday
2024-03-29
1:46 PM
Welcome Guest | RSS
Main » 2011 » August » 23

After using the set oracle_sid method I had a few problems with connections in sqlplus. In that even though I would specify one database I would get the one set in oracle_sid. For this reason I would suggest it is good practice to run the following code after each connection just to check your are connected to the right database.

select name from v$database;


Tested in 10g and 11g.
Views: 1183 | Added by: The_Kat | Date: 2011-08-23 | Comments (0)


Simple few lines of code to loop through a request and print out every parameter and its value.

Enumeration parameterNames = request.getParameterNames();

while (parameterNames.hasMoreElements()){ 
 String requestName = (String)parameterNames.nextElement();
 String comment = equest.getParameter(requestName);

 System.out.println(requestName);
 System.out.println(comment);
}
Views: 2951 | Added by: The_Kat | Date: 2011-08-23 | Comments (0)

Login form
Adverts
Search
Calendar
«  August 2011  »
SuMoTuWeThFrSa
 123456
78910111213
14151617181920
21222324252627
28293031
Entries archive
Site friends
  • Create your own site
  • Spree4.com
  • My Blog
  • Statistics

    Total online: 1
    Guests: 1
    Users: 0
    spree4
    Copyright MyCorp © 2024
    Website builderuCoz