DBA_USERS showing null values in PASSWORD column

Hi,
We are running a select query from dba_users table as follows :
select username from dba_users
where to_char(expiry_date, 'DD-MON-YY') =
to_char(sysdate + &expire_day, 'DD-MON-YY')
and password not in ('EXTERNAL','account-locked')
and account_status <> 'LOCKED';
This query was running fine with 10g Version, but after Oracle was upgraded to 11G recently, above query does not return any rows.
Also, when we remove the condition "and password not in ('EXTERNAL','account-locked')", it works.
And the values for the PASSWORD column shows null.
Is this related to Oracle upgrade ?
Kindly help..
Thanks,
Jatin

I have the same behavior in my 11g db (I have nulls in password column too) as checking docs:
[url http://download.oracle.com/docs/cd/E11882_01/server.112/e24448/statviews_5081.htm#REFRN23302]Oracle® Database Reference 11g Release 2 (11.2) - DBA_USERS
I can see:
USER_USERS describes the current user. This view does not display the PASSWORD, PROFILE, PASSWORD_VERSIONS, EDITIONS_ENABLED, or AUTHENTICATION_TYPE columns....
PASSWORD      VARCHAR2(30)           This column is deprecated in favor of the AUTHENTICATION_TYPE columnIt seems you need to get this info from somewhere else.
Edited by: Kecskemethy on Oct 3, 2011 2:36 AM

Similar Messages

  • 'Show Null Values as' variables not replaced

    I need the null values to display as small as possible so there is an image in my image repository, 1x1px, transparent, that I wanted to display in these null places, but when I inserted something like <img src="&COMPANY_IMAGES.null.gif"> or <img src="#COMPANY_IMAGES#null.gif">, the COMPANY_IMAGES was not replaced with the usual long call, it was just like inserted in the 'Show Null Values as' field.
    I have workarounds
    1) use a static image, that is publicly available - making the app's appearance dependant on that publicly available image.
    2) select columns with nvl(NULLABLE_COL, '<img src="#COMPANY_IMAGES#null.gif">'), which is just a thing, that could be easily forgotten in some place and makes the query even more obscure than it already is.
    I really like neither of them. Is there some other way to call COMPANY_IMAGES in that field or is it just a place where isn't the substitution string available?

    wow. you're right about that substitution not being made in that "Show Null Values as" field. i'll log that issue in a sec. you can work around the issue for now by simply doing that substitution yourself. so if you run this...
    select :WORKSPACE_IMAGES FROM DUAL
    ...from your sqlWorkshop, you'll see that WORKSPACE_IMAGES is substituted with a call like...
    wwv_flow_file_mgr.get_file?p_security_group_id=123456&p_fname=
    ...(where 123456 is my :WORKSPACE_ID). if you wanted to call an image called my_image.jpg in that "Show Null Values as" field, you could just enter the string...
    wwv_flow_file_mgr.get_file?p_security_group_id=123456&p_fname=my_image.jpg
    ...right in there, and you'd find your images rendered correctly. the only thing to watch out for is the hard-coded :WORKSPACE_ID in your field. you'd have to mind at number if you deployed your app in a different workspace.
    hope this helps,
    raj

  • Show null values as

    Hi,
    I am running Discoverer Plus 10.1.2.45.46c. We are running into some issues with the Show Null values as option under Tools/Options/Sheet tab. If you open an existing workbook that has this value set to NULL you can't change your output to show as ' ' for example.
    Has anybody else ran into this ? Is there a work around ?
    Thanks
    Dennis

    As per bug 4330751 - workbooks created in desktop with the option for nulls set to "" will display as NULL in plus. There is a new worksheet setting for nulls that you can modify in plus - Edit->Worksheet Properties->Crosstab/Table Format tab.
    The pref.txt setting will be honored for new plus workbooks.

  • Pro*C & SQLDA with NULL value for predicate column

    Hi: I am using a C program to update a table via a dynamic sql (method 4) and SQLDA. In the update statement predicate, I have place holders (as in TBLCOL=:C000). One of the columns in the predicate contains null values, so I set L[n] = 0, V[n] = pData (which pData[0] = '\0'), *(I[n]) = -1, and T[n] = 5 (for text). I cannot find the row that I know is there.
    I cannot change my statement to contain TBLCOL IS NULL, since I don't know ahead of time if I'm looking for rows with null values for this column. The Pro*C manual says that by setting the appropriate *(I[n]) = -1, it indicates to Oracle to simulate the "IS NULL" clause, and update the appropriate rows. In my case, I receive 1403 as SQLCODE when I use TBLCOL=:C000 vs TBLCOL IS NULL. What am I doing wrong? Thank you for your help.

    You should include these columns as well;
    ChangeType (see mxi_changetype)
    ValOwner (repository)
    UserID ("jobid=<>", usermskey, GUI (mmc), DG (dyngrp), reconcile)
    IdAudit  (This is the event task (add and del member for assignments)
    ParentAuditId (AuditID of parent which last updated the attribute, not consistent)
    ChangedBy (Holds the MSKEY of the user which last changed the attribute)
    ExpiryTime
    to make sure you get a fuller picture of the audit record.
    Your selection does not cover all events and descriptions
    br,
    Chris

  • Problem when passing string array in sessions showing null value

    i am trying to pass a string array but it is showing me the null value
    i think the the problem is seem to be in session.settAttribute("subject['"+i+"']",subject) in 2.login_action.jsp
    or in String sub1=(String) session.getAttribute("subject[0]"); in 3.user_home.jsp
    i have following three pages
    1.login.html
    2.login_action.jsp
    3.user_home.html
    1.login.html
    <html>
    <body>
    <form method="post" action="login_action.jsp">
    Username<input type="text" name="username"></input>
    <br>
    Password<input type="password" name="password"></input>
    <input type="submit" value="login"></input>
    </form>
    </body>
    </html>
    2.login_action.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <%!
    String user,pwd;
    String subject[]=new String[10];
    int i,totalsubject;
    %>
    <%
    try
    user=request.getParameter("username");
    pwd=request.getParameter("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
    PreparedStatement ps = con.prepareStatement("select password from users where username='"+user+"'");
    ResultSet rs = ps.executeQuery();
    if(rs.next())
    if(rs.getString("password").equals(pwd))
    session.setAttribute("username",user);
    PreparedStatement ps2 = con.prepareStatement("select subject_id from allot_teachers where staff_id='"+user+"'");
                        ResultSet rs2 = ps2.executeQuery();          
                             while(rs2.next())
                             i=0;
                             subject[i]=rs2.getString(1);
    // if i display here the subjects in out.println(subject[i]) it is working fine
    // but in next redirected page it is showing null
                             session.setAttribute("subject['"+i+"']",subject[i]);
                             //out.println(subject[i]);
                             i++;
    response.sendRedirect("user_home.jsp");
    else
    out.println("error invalid username or password");
    else
    out.println("error invalid username or password");
    con.close();
    catch(Exception e)
    out.println(e);
    %>
    3. user_home.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <html>
    <%
    String user,pwd,cat,cat1;
    String username=(String) session.getAttribute("username");
    if(username==null)
    response.sendRedirect("login.html");
    //just tried for first two subjects
    String sub1=(String) session.getAttribute("subject[0]");
    String sub2=(String) session.getAttribute("subject[1]");
    //here it is printing null
    out.println(sub1);
    //here it is printing null
    out.println(sub2);
    %>
    <form method="post" action="logout.jsp">
    <input type="submit" value="Logout"></input>
    </form>
    </html>
    Cheers & Regards
    sweety

    The name in getAttributre doesnt match the name in setAttribute.
    Note "subject[0]" is a string containing 10 chars, "subject" is a string containing 7 chars.
    Here is your code:
    session.setAttribute("subject",subject);
    String sub1=(String) session.getAttribute("subject[0]");

  • Null value in a column

    i have few master tables in my database.
    Each master table has few records in it.
    Now i have to display all the columns which have a null value and this needs to be done by checking each record in that table.
    if there is any null value column for any row then it should be displyed.
    How it can be done using pl sql block?

    Hi,
    Are you looking something like this...
    SQL> Create Or Replace Procedure Column_Test(pTableName In Varchar2)
      2  As
      3   vSQLString Varchar2(32000);
      4   vCounter Number := 1;
      5   vNullable Number;
      6  Begin
      7   For r In
      8   (
      9    Select  COLUMN_NAME
    10    From USER_TAB_COLS
    11    Where TABLE_NAME  = pTableName
    12    And NULLABLE  ='Y'
    13   )
    14   Loop
    15   vSQLSTRING := 'SELECT Count(*) FROM ' || DBMS_ASSERT.sql_object_name(pTableName) || ' WHERE ';
    16     vSQLSTRING := vSQLSTRING || r.COLUMN_NAME || ' IS NULL And Rownum<=1';
    17   Execute Immediate vSQLSTRING Into vNullable;
    18   If vNullable>0 Then
    19   Dbms_Output.put_Line(r.COLUMN_NAME);
    20   End If;
    21   End Loop;
    22  End;
    23  /
    Procedure created.
    SQL> execute column_test('EMP');
    EMAIL
    MGR
    PL/SQL procedure successfully completed.
    SQL>

  • Avoid shrinking of null values in a column....

    I created an RTF template but one of the columns is shrinking if it has null values. Is there any way to avoid this.
    If I replaced the null values with a dot it's workig fine, but the users dont wanna see the dots.
    Any ideas !!!!!!!!!
    Thanks in advance.

    Hi
    Enclose the column in a Table. That should work
    Srini Ramanujam

  • Crystal Report - NULL values mapped to Column names in reports

    Hai,
    I am using rows of data retrived from the SQL Server 2005 Express and sometimes the column names are NULL , I want to set a default value to this NULL value and set it as Data axes label / Group axes values, can some one please help me with this issue.
    Thank you in advance.
    Vijay

    I resolved this issue myself, this can be set as other Data Labels, Group Label or Series Riser's properties too, left-click twice until the blank item is selected and then right click and select "Edit Axis Label" item and here it can edited with the new value(text).

  • Show NULL values in an SQL query

    Hi,
    Please excuse my ignorance, but I am very green in Oracle.
    I am trying to create a simple function in PHP to return a list of the entire table row in an Oracle DB, however no matter I do Oracle skipps the columns with NULL values, which means that I don't even get the number of the columns corect. The query is as simple as it can get:
    SELECT * FROM table_name;
    I've tried NVL, DECODE and god knows what else. Please give me a hand with this.
    Cheers,
    Pimmy

    Once you can use ODBC it should be possible to use MySQL with HS:
    http://www.idevelopment.info/data/Oracle/DBA_tips/Heterogeneous_Services/HETERO_2.shtml
    What concerns the licenses: We are not referring to transparent gateways but to heterogenous services (generic connectivity) which come free with the DB:
    http://www.oracle.com/technology/products/gateways/faq.html#A707

  • How to show the VALUE as the Column Header using SQL query?

    Hi
    I have a requirement to show the picked value as the column header using SQL query.
    Example:
    ======
    SELECT EMPNO FROM EMP
    WHERE EMPNO=7934;
    Result Should be:
    7934
    7934

    I have a requirement to show the picked value as the column header using SQL query.In sql*plus you can do
    SQL> set verify on
    SQL> def e =  7934
    old: SELECT empno "&&e"  FROM emp  WHERE empno = &&e
    new: SELECT empno "7934"  FROM emp  WHERE empno = 7934
    SQL> SELECT empno "7934"  FROM emp  WHERE empno = 7934
          7934
          7934
    1 row selected.

  • Is it possible to filter a table for NULL values in a column? (11g)

    I am using the out-of-the box table filtering provided by ADF Faces RC, but cannot figure out how to filter on Null value that are in the table.
    I have tried "IS NULL" and "= NULL", but nothing works.
    I have a backing bean that intercepts the filtered values before the filter is applied, and I can't set it there either.
    Does anyone know how this is accomplished?

    No, it is not. Worse, many people will view this in any old PDF viewer, most of which won't have overprint preview at all.
    You need to send very clear instructions about this, with specific screen shots - or better, avoid tools and constructions that require it. Probably some wording about "need to view with suitable professional tools" will make the message more palatable.

  • Showing Null values in Cross-tabs

    Post Author: merv
    CA Forum: Charts and Graphs
    I've created a cross-tab report but I will like for the report to list the rows will null values as well as the rows with values.  I need to do this because I cannot create one cross-tab with all of the necessary fields, so Iu2019ve created 3 cross-tabs and placed them side by side. Or is it possible to link the cross-tabs.  Thanks
    I would like to see the following
    Total
    A
    A-
    A+
    B
    B-
    B+
    C
    C-
    C+
    D
    Total-1
    Total-2
    Canada
    MATH30800
    24
    12
    0
    0
    4
    0
    4
    0
    0
    0
    0
    Canada
    MATH30800
    24
    Canada
    MATH30800
    0
    Nigeria
    MATH201
    12
    8
    2
    2
    0
    0
    0
    0
    0
    0
    0
    Nigeria
    MATH201
    0
    Nigeria
    MATH201
    12
    Poland
    CHEM31800
    8
    0
    1
    0
    0
    0
    3
    1
    0
    0
    0
    Poland
    CHEM31800
    8
    Poland
    CHEM31800
    8
    Puerto Rico
    MATH190
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    Puerto Rico
    MATH190
    1
    Puerto Rico
    MATH190
    0
    Panama
    ENGR10300
    39
    3
    4
    1
    2
    4
    6
    3
    3
    0
    1
    Panama
    ENGR10300
    0
    Panama
    ENGR10300
    39
    Romania
    MATH31601
    4
    2
    1
    0
    0
    0
    0
    0
    0
    0
    0
    Romania
    MATH31601
    4
    Romania
    MATH31601
    0
    Afghanistan
    EAS10600
    11
    0
    4
    0
    0
    1
    1
    1
    0
    0
    0
    Afghanistan
    EAS10600
    0
    Afghanistan
    EAS10600
    11
    Bahamas
    HS-COURSE
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    Bahamas
    HS-COURSE
    27
    Bahamas
    HS-COURSE
    0
    Brazil
    HS-COURSE_2
    1
    0
    0
    0
    0
    0
    1
    0
    0
    0
    0
    Brazil
    HS-COURSE_2
    0
    Brazil
    HS-COURSE_2
    1
    instead of what's bellow
    Total
    A
    A-
    A+
    B
    B-
    B+
    C
    C-
    C+
    D
    Total-1
    Total-2
    Canada
    MATH30800
    24
    12
    0
    0
    4
    0
    4
    0
    0
    0
    0
    Canada
    MATH30800
    24
    Nigeria
    MATH201
    12
    Nigeria
    MATH201
    12
    8
    2
    2
    0
    0
    0
    0
    0
    0
    0
    Poland
    CHEM31800
    8
    Poland
    CHEM31800
    8
    Poland
    CHEM31800
    8
    0
    1
    0
    0
    0
    3
    1
    0
    0
    0
    Puerto Rico
    MATH190
    1
    Panama
    ENGR10300
    39
    Panama
    ENGR10300
    39
    3
    4
    1
    2
    4
    6
    3
    3
    0
    1
    Panama
    ENGR10300
    0
    Afghanistan
    EAS10600
    11
    Romania
    MATH31601
    4
    2
    1
    0
    0
    0
    0
    0
    0
    0
    0
    Romania
    MATH31601
    4
    Brazil
    HS-COURSE_2
    1
    Afghanistan
    EAS10600
    11
    0
    4
    0
    0
    1
    1
    1
    0
    0
    0
    Bahamas
    HS-COURSE
    27
    Brazil
    HS-COURSE_2
    1
    0
    0
    0
    0
    0
    1
    0
    0
    0
    0

    Post Author: azanobrown
    CA Forum: Charts and Graphs
    What I've done in the past is create a new formula for your "value" field similar to this and put it in your cross-tab:if {original value field} is "" then &#91;0&#93; else {original value field}the purpose is to create a record value (e.g. 0) where there is no record. I hope that this helps.

  • Problem in sending drop down list value to jsp page showing  null value

    i am trying to send a drop down list value from client side to a jsp page but getting null value
    this is first page where i have accessed data from database and putted it in a drop down list
    <select name="sub">
         <%
         while(rs2.next())
         cat=rs2.getString(1);
         %><option value="<%=cat%>"><%=cat%></option><%
         }%></select>
    <input type="submit" value="Go"></input>
    now on submit i am going to another page
    where i want the selected value from drop down list to be printed
    i have used there
    <%
    String subject= request.getParameter( "sub.value" );
    out.println(subject);
    %>
    but it is printing null here what is the problem that i m facing
    thanx & reagrds
    sweety

    how to generate dynamically names for text boxes
    i am generating text boxes in while loop when selecting data from database
    while(rs1.next())
    name=rs1.getString(1);%>
    <tr>
    <td>1</td>
    <td><%out.println(name);
    //i am printing here stud_id a unique key and want to update records from following text boxes to particular stud_id
    %></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    </tr><%
    the structure is like
    stud_id | attended theory | conducted theory | ateended practical | conducted practical
    where attended theory, conducted theory............. are to be inputed manually for all students and then update in database
    so i am facing problem in generating names for textboxes how to do that
    so that those can be updated in database for particular student
    Thanx & Regards
    sweety

  • How to show NULL value when import data into excel

    when retrieve data from sql server and import these data into excel.
    data source  is like : select a ,b c from tab
    if a,b,c is nullable. when import these NULL value into excel, it becomes blank value, there is nothing in the excel cell.
    if i don't want to use select isnull(a,'NULL') as a to convert the values.
    what's else can i do to make it? is there a way to prevent changing the NULL to blank ?
    or is there an easy solution to replace all the blank value to NULL in the excel ?

    help me ~

  • Fact column shows null values in report

    Hi Experts,
    I have a requirement where i need to create report from a Dimension Dim1 and 2 Fact Tables Fact1, Fact2 with the columns as Dim1.State, Fact1.Price, Fact1.Source,Fact2.Market Value. The two fact tables are at different granularity, when i run the report it is issuing the query only from Fact 1 and putting NULL for the column from Fact 2. Can someone guide me on how to approach.
    Thanks,
    Chandrasekhar

    Welcome to the magic world of content level.
    You give yourself the answer to your issue: "the two fact tables are at different granularity" (95% of chances you are just on that case for your issue).
    Time for some reading: https://greatobi.wordpress.com/2013/09/10/the-single-most-important-thing-to-know-about-the-obi-rpd/

Maybe you are looking for

  • Can a Mac book pro USB2 be upgraded to USB3?

    Hi, I am wanting to upgrade my Mac Book Pro USB 2 to USB 3 but am not sure if this can be done? I have read somewhere that it is possible but the local store seems to think not. Any info would be greatly appreciated. Thanks, Graeme.

  • I cant find my iphone on itunes!

    So I've been trying to use itunes but i cant find my iphone on itunes even though itunes is updated! I tried plugging iphone 4s, iphone 5 and iphone 5s but I still cant find any of them! what should I do??

  • Help can't change wiki design?

    I can't seem to change the wiki design theme when i try and change it in server admin it does nothing??? anyone have any ideas?

  • Exchange Server 2013 Timestamp on Email

    We have just had to resync all our physical servers and VMs because the domain controller was issuing the wrong time and date. All VMs and physical servers and DCs now have the correct time and date. Now when I send an email from Outlook the sent dat

  • HT1918 How to use an itunes voucher?

    When signing in to itunes, I constantly get the following error "There is a billing problem with a previous purchase" Please go to Purchase History to correct the problem. when I press OK, (to look at Purchase History the following error occurs 'Cann