Select Current user
good evening all
The following query returns results when executed in B1:
SELECT U_NAME FROM OUSR WHERE INTERNAL_K = $[USER]
Basically it allows me to select based on the CURRENT user.
Is there an equivalent command/feature in Net Point?
thanks
John
ok, I've tried to strip my code down to the bare minimum to get the current userID. Here it is...
<%@ Import Namespace="netpoint.api" %>
<%@ Import Namespace="netpoint.classes" %>
<%@ Page Language="C#" AutoEventWireup="true" Inherits="netpoint.classes.NPBasePage" %>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e) {
string userID = ((NPBasePage)Page).UserID;
if (userID != "") {
Response.Write(userID);
} else {
Response.Write("not logged in!");
</script>
This is the error
5.9.6.43135
Message Object reference not set to an instance of an object.
Source netpoint
Stack at netpoint.common.controls.header.Page_Init(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.UserControl.OnInit(EventArgs e)
at netpoint.common.controls.header.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child)
at netpoint.classes.NPBasePage.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolea
Similar Messages
-
Hi,
I'm needing to obtain the list of the TABLES which the current user has some privilege. I'm using the following query for doing that:
SELECT DISTINCT o.object_name
FROM all_objects o, all_tab_privs tp
WHERE o.object_name = tp.table_name
AND o.object_type = 'TABLE'
AND tp.grantee = USER
ORDER BY o.object_name
My problem with this query is the poor performance, and this aspect is critical in my system.
Somebody has any sugestion ?Your quey will only return tables current user has direct object grants to. It will not return tables user gas grants to via roles or via system privileges. And by using
AND tp.grantee = USERyou are skipping tables current user has access to via public grants.
SY. -
Why Wizard does not start when selecting Current User?
Program does not RUN. Wizard does not open after selecting Option for Current User
Did you try downloading and running the Firefox FULL installer, '''Firefox Setup 29.0.exe''' ? That will help with problems running the stub installer, which needs to download additional files after you run it.
You can get Firefox FULL installer here: (choose the Windows download for your language, e.g., English US)
* https://www.mozilla.org/en-US/firefox/all/
Once you install Firefox, you may have to run it once with an Administrator account, if the installation was from a limited account. Ref: http://kb.mozillazine.org/Installing_Firefox
If you install Firefox on a multi-user system where access privileges are restricted, you must run Firefox as a user with access to that location upon installation so that all initial startup files are generated.
----- -
Current User & Key Date in Web Reports
Hi,
I want to default the current user name & current date (could be different from the varaible key date) in the header or footer of the web report. I tried text elements in the web template where we can default only the variable values entered by the user, or general text which include above two texts along with many other details which are not required by me. I have also tried text variable in the query properties in vein. Could someone give some tips, please.
I have a formula variable "Current Calender Day". How I can create a text variable from this ?
Thanks & regards,
Sheeja.
PS: I'm a functional guy, so kindly explain in detail if any EXit coding is involved.Hi Sheeja,
If ur looking this option for a web template then please follow below steps for current user name & current date :
1. Create a Text web item present under the Miscelaneous Tab of web items.
2. In its properties tab Tick 'Display Text only'.
3. Select General Text elements For text binding option (Present in Data binding)
In general text Elements option:
Make a binding with a data provider.
For user name select - Current user
For Current date - Select Last Refresh options.
Try this, hope this will help to u.
Thanks ! -
Query to get objects list for which the current user has 'SELECT' privilege
Hi,
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
From these findings, I have composed below query
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
Have I got user's all prvilege details? should I look some other system views?
How to exclude system table privileges details?
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
What about Public role in Oracle? Should I consider public role here?
Oracel Version :11g
I want make this query to work on Oracle 8i or above version
Thanks>
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
>
You will need a hierarchical query to do that.
Try this script for Listing privileges recursively for Oracle users
http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html -
Query to select current login user name/id for Oracle 9i
How do write the sql statement for retrieving the login name/id that i used to login to the database?
SQL> select uid, user from dual;
UID USER
0 SYS
Bye, Aron -
Controlling report output based on current user
Hi all,
I am building a small app with APEX for a sales team.
We have the site and app hosted by another company.
I have built a report showing sales summary for the company. The problem is that the report is showing all sales for all sales people.
What I want is for the report to show data based on the user that is logged in, so that the user only sees his items.
In fact, this would be a useful thing to learn for me, because I could use this functionality on several other pager, so this will be a good example for other situations.
So far I have:
I have a database table that keeps track of the sales reps.
Each sales rep in that table is assigned a unique EMP_id, which is an autonumber column of that table, and is also the primary key.
The table also contains a column named: "User login Name" which is their login ID (the one they use to log into the application.
Possible solution (I think):
when user logs into APEX, retrieve their EMP_id from the EMP table based on their login name,
Hold the EMP_id in a variable for the duration of the session,
pass the variable to the SQL query for the report in the where clause.
Is this a good solution? or is there a better way to do this?
Can anyone advise on how to get this done please,
Thank you.Hi,
Sorry - I guess I should have said where to create the function!
You can keep those steps or keep with your own method as both should return the value you need. I usually store the result of that value in G_USER - similar to Tyson's method - when the user logs in and then use :G_USER wherever I want to use it in filters etc. However, if I need to create SQL Views, I have to use the GETCURRENTUSERID() function instead.
Andy
ps - I used MIN() in the function to ensure that I only get one value returned. The method SELECT .... INTO .... only allows us to set a variable to one value and, sometimes, more than one value is returned by the SELECT statement and this would generate an error. Of course, there should be just the one value that matches the current user, but I always assume the worst! The statementS:
SELECT MIN(EMP_ID) into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER'));
user_id := CASE WHEN user_id IS NULL THEN 9999999999 ELSE user_id END;could also be written as:
SELECT EMP_ID into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER')) AND ROWNUM = 1;
user_id := CASE WHEN user_id IS NULL THEN 9999999999 ELSE user_id END;or
SELECT NVL(MIN(EMP_ID), 9999999999) into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER')); -
How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users? Having to log out just to sign in on a different user to access the files is absurd.
Do I make all the files sharable to all the NOW users on the mac then just delete the files? Or can i erase my account that I made when starting up my new mac and then just use the one with the transferred files?
I just dont want to have to og in and out of 2 different accounts .. Help please.
-NinaSorry. /Users is a folder path. It would be similar to C:\Users (if that exists on Windows).
So, in the Finder, select Computer from the Go menu.
You'll see Macintosh HD, double-click that to open it.
In there you'll see several folders. One is Users. That is where all the user Home folders exist. Select the other account's home folder and go to step 3.
If you have any more confusion, please stop and ask. We'll get there.
If you feel more comfortable, you can just log into that other account and move the files into /Users/Shared.
Then, log into the account you wish to use and copy the files from the Shared folder and paste them into your Home folder, wherever they belong, Documents, Music, Pictures, etc. That just takes a little more work. Transferring them into Shared, and then copying into your home sets the permissions on the files so that you won't have a problem accessing them later. The steps I provided just prevent you from having to do the double move, since you are not going to use the old account once you are done.
Quick unix shorthand. If someone gives you a file path that begins with a /, that means the root of the hard drive, ie Macintosh HD (if you haven't renamed it). The path separator in unix is /, not \.
A path that starts with ~/ means your Home folder, the one inside /Users named with your account name. -
How to activate all inactive objects for current user
Hi
How to activate all inactive objects for current user ...
... I have found a (long winded) way to do this:
- Environment / Inactive Objects
- Add to Worklist
- Display Worklist
- Select All
- Activate
this will open a dialog titled "Inactive Objects for <username>"
which has the exact functionality I need ... but I can't figure out how to get to this dialog directly - without so many intermediate steps
the SAP docs repeatedly mention the ability to activate the inactive worklist - but do not mention how
does anybody know the TCode for this dialog?
thanks
ps does the term "mass activation" apply to importing change requests rather than development activation?
Edited by: FireBean500 on Jun 4, 2010 11:07 PMNo other way. But usually it's far more simple as all objects are already in our own worklist.
I wonder why your objects are not already in your worklist, as everytime you create or maintain an object, it is added to your worklist. -
How to find out by MDX that the current users is member of a role - Default member issue
Hi,
just imagine you have a dimension with a few members (A, B, C...). I defined a role which gives some users only rights to "B". On the other hand the default member for the dimension is set to "A". Now users part of the role get an error
that the member "A" is not found. So while
https://msdn.microsoft.com/en-us/library/ms175626.aspx says the default member setting in the role "overrides" the overall default member this is not completely true because first the general default member is selected and after that the role
specific one.
So the solution might be that I explicitly define the default member in all roles. This might be possible but there is one issue: you can't define a role specific default member for users part of the adminstrator role. So all admins don't have a default
member which is quite some restriction for some users...
So the question is how to solve that problem. An idea would be that I use some MDX to determine the default member in the dimension based on the actual user's role membership. But how to do that? Or any better idea?
Thanks,
Thomas PagelHi Thomas,
According to your description, you want to have a role-specific default member for different roles. Right?
In Analysis Services, when granting access to dimension, a connection will fail if a role restricts access to a default measure. As you mentioned, the best solution is specify a default member for each role. But for administrator role(full control),
it can't set the default member. All tabs except General and Membership are disabled. And the system can determines the default member of current user automatically. It's not supported to get the default member in MDX either.
However, SSAS has additive design for role security. So in this scenario, we just need to create another role for those members of administrator role and specify a default member for this role. SSAS will take that role-specific default member
for these users. And it will not effect the administration permission for them.
Reference:
Default members, MDX Scripts, Security, KPIs and Perspectives
The Additive Design of SSAS Role Security
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
TechNet Community Support -
How to get a list of current users and their transactions code?
SM04 and AL08 give the list, but its not comprehensive. in sm04, we have to click the username and select sessions and then a
new popup comes giving all transactions for the user.
I want a list such that each and every transaction corresponding to the user is listed at same time.Hi,
Use the FM TH_LONG_USR_INFO.
Just give parameter user as * (it means all users, other wise current user)
It will give ALL transactions for ALL users.
Regards,
Amit Mittal.
Edited by: Amit Mittal on Dec 30, 2009 1:00 PM
Edited by: Amit Mittal on Dec 30, 2009 1:03 PM -
Add Page n of nn, date, current user name to aReport Footer on PDF Report
Hello,
I am very new to using Apex.
I have a SQL Report which I can output to a PDF and works.
I have a header and the contents of the report all appearing in the PDF OK.
I would like to have a footer for each page which has the date & timestamp, current users full name and page n of nn.
Any help would be much appreciated, thanks.Hello Luis
Thanks for your help.
I have the first part of the current user and the date and time displayed on the bottom of the report.
The complicated bit for me it the page n of n.
I have created the report layout and copied in your code but I get an error that tells me that
the PDF cannot be opened because it is either not supported or damaged .....
Here is the contents of the Page Template:
<?xml version = '1.0' encoding = 'utf-8'?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:variable name="_XDOFOPOS" select="''"/>
<xsl:variable name="_XDOFOPOS2" select="number(1)"/>
<xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
<xsl:variable name="_XDOFOOSTOTAL" select="number(0)"/>
<xsl:attribute-set name="padding">
<xsl:attribute name="padding-bottom">0.25pt</xsl:attribute>
<xsl:attribute name="padding-top">0.25pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text">
<xsl:attribute name="text-align">start</xsl:attribute>
<xsl:attribute name="orphans">2</xsl:attribute>
<xsl:attribute name="start-indent">0.0pt</xsl:attribute>
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="padding-top">0.0pt</xsl:attribute>
<xsl:attribute name="end-indent">0.0pt</xsl:attribute>
<xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
<xsl:attribute name="height">0.0pt</xsl:attribute>
<xsl:attribute name="widows">2</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="align-left">
<xsl:attribute name="text-align">left</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="align-center">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="align-right">
<xsl:attribute name="text-align">right</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="footer">
<xsl:attribute name="text-align">right</xsl:attribute>
<xsl:attribute name="start-indent">5.4pt</xsl:attribute>
<xsl:attribute name="end-indent">5.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_2">
<xsl:attribute name="start-indent">5.4pt</xsl:attribute>
<xsl:attribute name="end-indent">23.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_20">
<xsl:attribute name="height">13.872pt</xsl:attribute>
<xsl:attribute name="end-indent">5.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_0">
<xsl:attribute name="end-indent">5.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="page-header">
<xsl:attribute name="color">#PAGE_HEADER_FONT_COLOR#</xsl:attribute>
<xsl:attribute name="font-family">#PAGE_HEADER_FONT_FAMILY#</xsl:attribute>
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
<xsl:attribute name="font-size">#PAGE_HEADER_FONT_SIZE#pt</xsl:attribute>
<xsl:attribute name="font-weight">#PAGE_HEADER_FONT_WEIGHT#</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="page-footer">
<xsl:attribute name="color">#PAGE_FOOTER_FONT_COLOR#</xsl:attribute>
<xsl:attribute name="font-family">#PAGE_FOOTER_FONT_FAMILY#</xsl:attribute>
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
<xsl:attribute name="font-size">#PAGE_FOOTER_FONT_SIZE#pt</xsl:attribute>
<xsl:attribute name="font-weight">#PAGE_FOOTER_FONT_WEIGHT#</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="body-font">
<xsl:attribute name="height">12.0pt</xsl:attribute>
<xsl:attribute name="font-family">#BODY_FONT_FAMILY#</xsl:attribute>
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
<xsl:attribute name="font-size">#BODY_FONT_SIZE#pt</xsl:attribute>
<xsl:attribute name="font-weight">#BODY_FONT_WEIGHT#</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="page-number">
<xsl:attribute name="height">13.872pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="header-font">
<xsl:attribute name="height">#HEADER_FONT_SIZE#pt</xsl:attribute>
<xsl:attribute name="font-family">#HEADER_FONT_FAMILY#</xsl:attribute>
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
<xsl:attribute name="font-size">#HEADER_FONT_SIZE#pt</xsl:attribute>
<xsl:attribute name="font-weight">#HEADER_FONT_WEIGHT#</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="border">
<xsl:attribute name="border-top">#BORDER_WIDTH#pt solid #BORDER_COLOR#</xsl:attribute>
<xsl:attribute name="border-bottom">#BORDER_WIDTH#pt solid #BORDER_COLOR#</xsl:attribute>
<xsl:attribute name="border-start-width">#BORDER_WIDTH#pt</xsl:attribute>
<xsl:attribute name="border-start-color">#BORDER_COLOR#</xsl:attribute>
<xsl:attribute name="border-start-style">solid</xsl:attribute>
<xsl:attribute name="border-end-width">#BORDER_WIDTH#pt</xsl:attribute>
<xsl:attribute name="border-end-color">#BORDER_COLOR#</xsl:attribute>
<xsl:attribute name="border-end-style">solid</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell">
<xsl:attribute name="background-color">#BODY_BG_COLOR#</xsl:attribute>
<xsl:attribute name="color">#BODY_FONT_COLOR#</xsl:attribute>
<xsl:attribute name="padding-start">5.15pt</xsl:attribute>
<xsl:attribute name="vertical-align">top</xsl:attribute>
<xsl:attribute name="padding-top">0.0pt</xsl:attribute>
<xsl:attribute name="padding-end">5.15pt</xsl:attribute>
<xsl:attribute name="number-columns-spanned">1</xsl:attribute>
<xsl:attribute name="height">0.0pt</xsl:attribute>
<xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="header-color">
<xsl:attribute name="background-color">#HEADER_BG_COLOR#</xsl:attribute>
<xsl:attribute name="color">#HEADER_FONT_COLOR#</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="master0" margin-left="66.6pt" margin-right="66.6pt" page-height="#PAGE_HEIGHT#pt" page-width="#PAGE_WIDTH#pt" margin-top="36.0pt" margin-bottom="36.0pt">
<fo:region-before region-name="region-header" extent="54.0pt"/>
<fo:region-body region-name="region-body" margin-top="54.0pt" margin-bottom="54.0pt"/>
<fo:region-after region-name="region-footer" extent="54.0pt" display-align="after"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master0">
<xsl:variable name="_PW" select="number(#PAGE_HEIGHT#)"/>
<xsl:variable name="_PH" select="number(#PAGE_WIDTH#)"/>
<xsl:variable name="_ML" select="number(72.0)"/>
<xsl:variable name="_MR" select="number(72.0)"/>
<xsl:variable name="_MT" select="number(90.0)"/>
<xsl:variable name="_MB" select="number(90.0)"/>
<xsl:variable name="_HY" select="number(36.0)"/>
<xsl:variable name="_FY" select="number(36.0)"/>
<xsl:variable name="_SECTION_NAME" select="string('master0')"/>
<fo:static-content flow-name="region-header">
<fo:block xsl:use-attribute-sets="text text_2 text_0 #PAGE_HEADER_ALIGNMENT#">
<fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#</fo:inline>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="region-footer">
<fo:block xsl:use-attribute-sets="text footer">
<fo:inline xsl:use-attribute-sets="body-font page-number">
<fo:page-number/> of <fo:page-number-citation ref-id="last-page"/>
</fo:inline>
<fo:block id="last-page"/>
</fo:flow>
<fo:block xsl:use-attribute-sets="text text_2 #PAGE_FOOTER_ALIGNMENT#">
<fo:inline xsl:use-attribute-sets="page-footer">#PAGE_FOOTER#</fo:inline>
</fo:block>
</fo:static-content>
<fo:flow flow-name="region-body">
<fo:block xsl:use-attribute-sets="padding">
<fo:table start-indent="0.0pt">
<xsl:variable name="_XDOFOPOS2" select="number(1)"/>
<xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
#PRN_TABLE_CELLS#
<fo:table-header>
<fo:table-row>
#PRN_TEMPLATE_HEADER_ROW#
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:for-each select=".//ROW">
<fo:table-row>
#PRN_TEMPLATE_BODY_ROW#
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block>
<fo:block xsl:use-attribute-sets="text text_2 text_20">
<fo:inline id="{concat('page-total-', $_SECTION_NAME, $_XDOFOPOS)}"/>
<fo:inline id="{concat('page-total', $_XDOFOPOS)}"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet> -
The current user username has not been granted the ADVISOR privilege despite having it !
Hi,
I'm trying to follow ML note 2499931.1 'Using Dbms_Advisor.Tune_Mview To Optimize Materialized Views For Fast Refresh' and am receiving an error suggesting the user4 does Not have the Advisor privilege
despite the fact that it does. What am I missing ?
Every note I've found so far suggests granting the privilege is the fix.
I have and continue to receive the error.
Version 11.2.0.3 on Redhat 5
select * from dba_sys_privs where grantee = 'SOAUSER';
GRANTEE PRIVILEGE ADM
SOAUSER CREATE MATERIALIZED VIEW NO
SOAUSER CREATE VIEW NO
SOAUSER CREATE PUBLIC SYNONYM NO
SOAUSER SELECT ANY DICTIONARY NO
SOAUSER ON COMMIT REFRESH NO
SOAUSER CREATE ANY DIRECTORY NO
SOAUSER CREATE DATABASE LINK NO
SOAUSER SELECT ANY TABLE NO
SOAUSER ADVISOR NO
SOAUSER UNLIMITED TABLESPACE NO
SOAUSER CREATE SESSION NO
Error at line 2
ORA-13616: The current user SOAUSER has not been granted the ADVISOR privilege.
ORA-06512: at "SYS.PRVT_ADVISOR", line 4869
ORA-06512: at "SYS.DBMS_ADVISOR", line 1969
ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 490
ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 970
ORA-06512: at "SYS.DBMS_ADVISOR", line 739
ORA-06512: at line 3
Thanks in Advance
KenSorry, but the code I was receiving the error message for is essentially the same as the example in the note. Assumed people would have access to the note.
The statement is:
variable foo varchar2(20);
declare foo varchar2(20) := 'ken_foo';
begin
dbms_advisor.tune_mview(:foo,
'create materialized view ken_foo
as
select
papf.rowid R_papf,
paaf.rowid R_paaf,
gcc.rowid R_gcc,
papf.employee_number,
gcc.segment4 cost_center
from hr.per_all_people_f@atc_pp_to_ebs_atcllc papf,
hr.per_all_assignments_f@atc_pp_to_ebs_atcllc paaf,
gl.gl_code_combinations@atc_pp_to_ebs_atcllc gcc
where papf.person_id = paaf.person_id
--and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
--and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date
and paaf.default_code_comb_id = gcc.code_combination_id');
end;
Per another forum the answer appears to be that sys didn’t have the advisor privilege.
Granted advisor to sys and ran the statement again as soauser and no error.
Thanks
Ken -
Usually there is a upgrade path for current users of the software at a reduced price. I dont see anything like that for Lightroom 6. Will I have to pay full price just to upgrade to the new LR6 standalone version???
The standalone upgrade is 79 US Dollars.
Go to Products, select Lightroom 6, click on Buy, select Upgrade instead of Full -
Storing easy to access information about current user
Hi everybody!
Does someone know if I could store somewhere an information about the current user and that a could retrieve anytime in a similar way I can retrieve the username of the current user when I do 'select user from dual' ? I would like each new session opened to pass a different information even if it is the same user.
Would the table user_users be a good place to store this information ? Does it store a new record for each session ? If yes, where is it and how could I modify its structure (new column) or its data ? Or maybe I should create a similar table that I would update myself with each new session.
Thanks,
Denis.I dont remember that Oracle keeps the information persistent anywhere of the session after the session is over. If your session is on than the info is in the V$session.
The way around could be that you enable some logon trigger and capture thelogin credentials of all teh users in some table of yours and check it later on.
I would like each new session opened to pass a different information even if it is the same user.
I didnt get this part. Every time the info willbe by default different right? It will be a new session id, serial number all the time.
Would the table user_users be a good place to store this information ? Does it store a new record for each session ? If yes, where is it and how could I modify its structure (new column) or its data ? Or maybe I should create a similar table that I would update myself with each new session.
Well for sure the user_users contains the info of the current users but in NO WAY you shoudl think about tempering this view by yourself as its a part of oracle's own data dictionary. Changing any part of that will leave your database in the unsupported state.
The other option to create a table similar like this of your own will be a good idea.But before that I guess you should reply to Justin's questions what exactly you want to track?
Aman....
Maybe you are looking for
-
How come no .plist for GB in prefs?
Hi How come there's no .plist for GB in the prefs?
-
Hi All, I have installed 9.2.0 and the Mysql is also installed with the hyperion. And now when i configure the same it is asking me for the username and password when can i get that. Please help. Regards, Mink
-
Why does Personal Hotspot in iOS 5 give a rotating circle instead on the on/off button?
Why does Personal Hotspot in iOS 5 give a rotating circle instead on the on/off button?
-
13017 Received TACACS+ packet from unknown Network Device or AAA Client
I am adding new routers to our Corporate network for a new MPLS network. I am getting 13017 Received TACACS+ packet from unknown Network Device or AAA Client errors for these new routers. They are added to ACS 5.4.0.30 correctly just like all of o
-
when syncing my iPhone 5 to my computer I keep getting a message "copying diagnostic information" and then determines apps & tracks to sync but doesn't seem to copy anything followed by "waiting for changes to be applied" which seems to take at least