v$ session and v$ sqlarea interprets differently

I use the version of redhat linux 5. The version of db is oracle11g.

I am trying to run the script from shell on Linux below

export ORACLE_SID = chf01
export ORACLE_HOME=/ora/app/oracle/product/11.1.0/db_1
Export WORKDIR = / ora/app/oracle/admin/chf01/scripts
CD $WORKDIR
$ORACLE_HOME/bin/sqlplus scott/tiger@ch01 < < EOF
coil sqlcapture.log
INSERT INTO scott. T_SQL_CAPTURE
SELECT THE MACHINE,
SQL_FULLTEXT
Of
session v$ a.
v$ sqlarea b
where
((a.sql_address = b.Address
and a.sql_hash_value = b.hash_value)
or (a.prev_sql_addr = b.address
and a.prev_hash_value = b.hash_value))
;
commit;
spool off
output
EXPRESSIONS OF FOLKLORE
ERROR ='grep ' ORA - sqlcapture.log | WC-l"
If ["$ERROR" - gt 0]
then
Cat sqlcapture.log | mailx-s "sqlcapture is down"[email protected]
on the other
Cat sqlcapture.log | mailx-s "sqlcapture is effective"[email protected]
FI
output

Here is the content of the spool file. session of $ v is interpreted as v and v$ sqlarea is interpreted as v b.

How can I fix?

SQL > INSERT INTO scott. T_SQL_CAPTURE
2. SELECT THE MACHINE,
3 SQL_FULLTEXT
4
v 5A,
6 v b
7 where
8 ((a.sql_address = b.address
9 and a.sql_hash_value = b.hash_value) 10 or (a.prev_sql_addr = b.address
11 and a.prev_hash_value = b.hash_value))
13;
v b
*
ERROR on line 6:
ORA-00942: table or view does not exist

SQL > commit;

Validation complete.

SQL > spool off

Because * $ is interpreted by the Linux shell. If you need to escape. I used to escape all the $ with------$ but someone in another thread posted something nice. Use this:

$ORACLE_HOME/bin/sqlplus scott/tiger@ch01<>
.
.
.

Tags: Database

Similar Questions

  • HP laserjet 8150dn pcl and ps driver interpret different trays

    Hello

    I have the problem that we cannot yet use the ps driver because the page margins are ignored. So I replaced it with the pcl (no pcl6) printer driver. Then the page margins are now OK but the status bar, select is different.

    HP LaserJet 8150 Series PS

    15: Devising Park

    257: Tray 1

    258: Tray 1 (manual)

    259: tray 2

    260: tray 3

    261: tray 4

    262: Tray 5

    263: envelope

    263: printer Auto Select

    HP LaserJet 8150 Series PCL

    15: Devising Park

    257: 5 tray (500 sheets)

    258: tray 4 (500 sheets)

    259: tray 4 (2000 sheets)

    260: tray 3

    261: tray 2

    262: Tray 1

    4: manual feed (Tray 1)

    5: Umschlageinzug

    Is it possible to change that, like a registry entry?

    Thank you for your help.

    Cordially Jorge74

    >> ... We have a lot of word documents containing the parameters of the page.

    This is obviously the source of your problems; can you describe what you mean by that in detail?

    >> ... The PS driver interprets as the tray 2 and pcl as tray 4.

    Do you mean that your Word document (in this example) injects an escape sequence "paper source selection" (& l259H) in the print stream? Or something else?

    If this is the case, I can't imagine that a driver PostScript would accept such sequences; Once again, to provide more details.

    Or is it just that the values stored in Word documents are dependent on the active printer? (I don't know what the mechanism is that Word uses here).

    >> ... Unfortunately, the ps driver ignore the page margin.

    You will need to provide more information, although I can't advise much on issues of PS.

    >> ... Why are there differences?

    PCL has been defined by HP and PostScript by Adobe, as well as their "paper tray" codes were always likely to be different.

    That being said, LJ 8150 is likely to use a HP-written PostScript emulator in the firmware, so maybe they tried

    to align the identifier numbering more closely.

  • Not different session among v$ session and parameters of v$ resource_limit

    Dear Frieends,


    I have a confussion on two parameters, one is "v$ session" and another "V$ resource_limit. Look at the following result:

    SQL > select to_char (sysdate, ' ' Dy DD-Mon-YYYY HH24:MI:SS) as 'Current time' from dual;

    Currently
    ---------------------------------------------------------------------------
    Monday, March 9, 2009 17:02:06

    SQL > select count (*) in the session of v$.

    COUNT (*)
    ----------
    271

    SQL > select * from v$ resource_limit where resource_name = "sessions";


    RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_AL LIMIT_VALU
    ------------------------------ ------------------- --------------- ---------- ----------
    sessions 280 408 445 445


    I see here that at a point given to the database, the number of meeting of the session $ v "271" so that the number of session in the "v$ resource_limit" is "280". Here, I get some differ among these parameters.

    Everybody would say please why the number of sessions differ between v$ session and parameters of v$ resource_limit.

    Waiting for your kind response...

    There are several bugs related to v$ resource_limit and current usage.
    For example check metalink Note 3896119.8

    and this current_utilization rapidly changing over time. So it can be simply you are not able to measure at the same point in time both views.
    And v$ session is most trustfull to find current sessions.

  • I have the two Master Sync activated WITHOUT be asked for master password said at the start of the session and password?

    The basic question is that whenever I start Firefox, I am invited, a few seconds later, my master password, regardless of if I will actually connect a site for which I saved my credentials.
    This same number as well as a replica of his original poster chosen as the best answer has been published on the following link: https://support.mozilla.org/en-US/questions/1039575

    I'm in the same situation as this poster, but I don't want to turn off sync. I need the master password set to protect my passwords stored, and I need the Sync feature enabled to share my profile between different computers that I use.
    If I close the master password prompt at the start of the session and then I go to a page that I recorded the password, I should I get prompted again, and that's all I need. Also, I've installed Sync do NOT share my passwords stored, where the master password invite so that the effect is useless in my case.

    So the question is simply how can I turn off the prompt for password at startup, have it pop up when you access a site that needs a password stored (or ask if I want to save a) and keep the clock running without sharing passwords.

    Thanks in advance.

    No, this is not possible.
    Sync must retrieve the journal of authentication data in password manager and which requires to enter the password to unlock the password.

    The synchronization used in Firefox 34 version then use password manager to store the name (e-mail) and password to use to connect to the synchronization server.
    The chrome://FirefoxAccounts entry in the Password Manager stores (kA and kB) credentials in JSON format.
    Earlier versions of Firefox used to store these data in the signedInUser.json file in the profile folder, but the current version only stores the sessionToken in this file and must the Manager password for the credentials of the synchronization.

  • disinfect and validation of sessions and cookies

    From a security point of view I'm disinfection and input validation.

    Create a session using the displayed username that is disinfected and validated first on a registration of the user.

    On further visits when the usernames in their username is validated data base and again a session is created and used throughout their pages.

    I put only ever the SESSION for the user, but in my code at the end of the session (according to the information I have seen and read), I finished the session with:

    unset($_SESSION['username']);

    $_SESSION = array();

    invalidate the session cookie

    If (isset($_COOKIE['username'])) {}

    setcookie ('username', ", time () - 86400, ' / ');

    }

    session_destroy();

    Now, I never really the cookie or use it to my knowledge but I have seen that this code should be used to end a session, so I presume that there is a valid reason and that the SESSION must use the COOKIE and I wonder if $_COOKIE ['username'] must be disinfected whenever the user navigates to a different page in their administration pages I saw that filter_input functions have an option to filter the entrance of cookie. I apologize for not understanding what are cookies in this situation, everything I do is actually set during the connection session and finish on logout.

    I do something like:

    If (filter_has_var (INPUT_COOKIE, "username")) {}

    $cleancookie = filter_input (INPUT_COOKIE, 'username', FILTER_SANITIZE_STRING);

    $_COOKIE ['username'] = trim ($cleancookie);

    Maybe it would also be useful if I knew why I had reset the session cookies every time I have finished a session, if someone could kindly explain.

    Following disinfection session cookies what the stored value in $_SESSION ['username'], so that the user moves between their admin pages this value should be reorganized and if so please could someone advise me how best to do this. Maybe I should validate against the expected values of just say letters and numbers?

    Thank you in advance for any help, information and answers to help me to understand and solve the problems of security above.

    tessimon wrote:

    invalidate the session cookie

    If (isset($_COOKIE['username'])) {}

    setcookie ('username', ", time () - 86400, ' / ');

    }

    .. .in my code is not relevant in this situation and can be removed?

    At the start of:

    unset($_SESSION['username']);

    session_destroy();

    Yes. That should be enough.

    What about the security of the SESSION ID variable is stored as a cookie on the user's computer, can it be corrupted?

    Once someone has been connected, it is generally considered a good idea to regenerate the session ID using session_regenerate_id(). To do that only once in respect of the identification of the user information has been verified.

  • My on my Mac and Ipad apple ID different from my Iphone

    I have a big problem. Appreciate any help: my on my Mac and Ipad apple ID different from my Iphone. The complication is the apple iphone that ID is an address that no longer exists, AND I don't remember the password. What a wally. Help.

    < re-titled by host >

    Contact Apple for assistance with the security of the Apple ID - Apple Support accounts

  • My Hotmail watcher has stopped working since last week. I uninstalled and reinstalled several times different, but it did not help

    My Hotmail watcher has stopped working since last week. I uninstalled and reinstalled several times different, but it did not help

    Sorry, I should have told you how to install it.

    • Click on the orange button Firefox > Modules > Extensions > click the settings next to the bar (screwdriver and key intercroisées) search, click install the module file them find the file that you downloaded and it open it. It should bring up a box that says install now. Do so if she asks you to restart Firefox, do.
  • I'm trying to update my applications and ID apple is different

    I'm trying to update my applications and ID apple is different?

    Different from what?

    The application must have been purchased with this id.

  • How to record a session .and there continue another time

    When I work on a particular subject, after a while, I want to interrupt my work in another time, so I need can continue from the previous session.

    You can use the Session Manager addon to save multiple sessions and restore them later.

    There's no other solution (maybe except a few other addon). Firefox itself does not support storage of multiple sessions.

  • After you type the master password in session can force type master password once again without ending the current session and start new session?

    Sometimes after using the password to access an account during a given session of firefox, I want to "repeal" this ability of automatic access (i.e. require type the password again once) without having to put an end to the current session and restart firefox.

    It's nice to only have to type the password once per session, there are times when after launching an action that I would let the browser unattended for a short period but to prevent others to access sensitive information on other sites if they can't my master password. Note that this is not the same thing as "locking the browser. Currently, the only way I know to force it is to kill the session and restart the browser but it's not very satisfying if I really want to stay connected (allowed) to a particular site. I hope that adding a button in the Security tab "requires the master password for the current session" would be a simple solution to implement? Thank you for your attention.

    You can connect from the software security device (e.g. click Cancel in the dialog box display the passwords) to force them to return to the MP once more.

    • Tools > Options > Security: passwords: "saved passwords" > "show passwords".
    • Tools > Options > advanced > encryption: Certificates > safety devices: software security device: Logout button
  • can I use 2 Mac Pro, the old and the other from different locations with the same apple ID?

    can I use 2 Mac Pro, the old and the other from different locations with the same apple ID?

    Yes. The only problem that I see if Macs were different countries. The method of payment in the account/ID must be associated with the country where the unit is located and you can only buy Apps from the store of the country where the computers are located

  • the imei/meid number on my box and the Bill is different from what it shows in the icloud settings. Should what code I provide legal officials? I lost my phone

    the imei/meid number on my box and the Bill is different from what it shows in the icloud settings. Should what code I provide legal officials? I lost my phone

    Did you buy it an Apple Store, another store or regular carrier or as a boon to someone else?

  • Do you know how to copy certain tasks in the calendar and the past on different days?

    Do you know how to copy certain tasks in the calendar and the past on different days?

    This year, I even tasks to every month, so it is difficult for me to create new tasks for the same information. I can't find how to copy beyond the tasks, so if someone could help me I aprecciate it.

    Thanks in advance!

    Select, press COMMAND = C to copy it to the Clipboard; Select the date that you want a copy with the mouse, them press COMMAND\-V to paste. If you want a repetitive task, you can select the item and double-click it to open it, and then the pop up config, select repeat.

  • Get the Max values and average of the different cycles in the single channel

    Hello

    I'm trying to get the Max values and average of the single channel that has different cycles it contains. I tried to use commands such as Chnclasspeak3 and chnpeakfind, but they were not useful for me. What I need is the Max values and average of the different cycles numbers saved in the data channel.

    Exampld if the string contains 5 numbers of repetitive cycles, then we must find the maximum values and the average of these 5 cycles in the single channel. Attached reference data. This is the .raw file and I have the plugin for it to use in diadem 11.1.

    Kind regards

    X. Ignatius

    Hello, Ignatius,.

    Sorry, it took some time to provide a replacement based on the script for the function. Please take a look at the attached script. I changed the script to use my function if the tiara-version is less than 12. My script function is not as fast and more stable than the implementation of tiara, but for now, it does the job

    Andreas

  • How to stop a Web site generating spams are sent to me - it is all associated with the use of viagra and I had 10 different emails today

    How to stop a Web site generating spams are sent to me - it is all associated with the use of viagra and I had 10 different emails today

    Thank you

    You need to ask the experts of Hotmail one.
     
     
    Help for Windows Live Hotmail can be found in this forum.
    http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail?tab=all 

    Help for Outlook.com is located in this forum
    http://answers.Microsoft.com/en-us/windowslive/Forum/mail?tab=all
     

Maybe you are looking for

  • That Skype has web API?

    Hello.That Skype has web API? I would use it on a website: to start a video call, to invite users to a video call and rely on-call time.It would be great if I could make calls video directly in the browser as "Skype for Web" but on my site.

  • What is the maximum resolution monitor that a model of Macbook Air 2015 can push with an Intel HD 6000?

    Hello guys, I am very new in the Mac world, and I currently have a MacBook Air 11 "2015 model. I'm a long-time Windows and short-term Linux user. I find that the transition between Linux and Mac, however, is pretty easy. I just wanted to know if anyo

  • I have problem to publish my web site after update

    When the my site web I do not see that, but if I restart IIS, the problem has been resolved

  • Windows crashes with a gurgling noise. BSOD

    Hello I demoted Windows 8.1 for windows 7 because of the buzzing and gel all in game (a message indicates graph pilots stopped responding and recovered). Unfortunately, the problem persists. The pop up message for not responding in what is the graphi

  • Need ideas on components

    Hello I want to know what is the difference between these components (ActiveAutoTextEditField, AutoTextEditFie LD, BasicEditField, EditField). It all sounds the same and so I need an idea on this Concerning Rakesh Shankar.P