Limit SQL output per user
In the sample sql below, I figured out how to be able to limit the production of words ending in a 5 for a specific user and would like to know if it is a more compact way to write this or is it the best way. This sql will be only the list of words ending with a 5 If the user = "Myself", otherwise if another user is connected, then they would see all terms in the sector.with ODP as
(select distinct user, case when user = 'MYSELF' then
substr(term,1,5)|| '5'
else term
end as ODPTerm
from status_table
where substr(term,6,1) = '5'
)
select distinct user, term, odpterm
from status_table
left outer join ODP
on term = ODPTerm
where (user = 'MYSELF' AND ODPTerm IS NOT NULL)
OR (user !='MYSELF' AND term between '201220' and '201245')
There are a lot of questions how security has been put in place and the actual query will be used in an Oracle report that runs via a URL. We were told that ITS prefer we create a separate report and restrict the term rather than trying to identify the user, however, this method would require that maintain us several reports since users are able to enter running parameters. We thought that since at this point there are only two users (Non-employee) who need the restriction, it would be better for our purpose for maintenance of report. The other reason is that ultimately we will be converting this report to the other reporting tool, which would have a different arrangement of safety, so wouldn't be a problem long term on the maintenance of the hard coded exclusion of user in the SQL statement.
Hello
Here's a way to do it:
SELECT DISTINCT
user
, term
, term AS odpterm
WHERE ( user = 'MYSELF'
AND SUBSTR (term, -1) = '5'
)
OR ( user != 'MYSELF'
AND TERM BETWEEN '201220'
AND '201245'
)
;
If you would care to post some examples of data (CREATE TABLE and INSERT statements), then I could test this.
If you use Oracle Enterprise Edition, you can create a row-level security policy, such as the limitations like this automatically apply to any request made on the table. Search the virtual private database (or DPV ) and the dbms_rls package supplied by Oracle for more information.
Published by: Frank Kulash, October 26, 2011 18:47
Tags: Database
Similar Questions
-
Limit the sessions per user OEM
Hi all
We do not want an oem user to be used by several developer at the same time. Want to restrict the number of sessions to connect a user to oem. I tried sessions_per_user limited the backend for oem users, but it does not work.
Is there something that I need to share this? Enjoy your advisor.
WHO/db version 10.2.0.4
Kind regards
Satheesh Shanmugam
http://borndba.com
Published by: Borndba on January 12, 2010 15:34
information updateSatheesh,
Unfortunately there is no implementation of the DB profile where neck defined the limit of session_per_user. So in fact, it won't work.
I would say that the best way to get control over the number of developers connecting to the OEM, would create a custom for each developer account you allow access to OEM. Hereby, every developer would have his own account, which puts you in a much safer situation.
Concerning
Rob -
Limit Internet threshold for users
Hello
Is there a way I can limit user bandwidth with SonicWall NSA 6600? I saw my users are absuing very excessive Internet and thinking to apply a limit daily usage per user and per group of users to control their use.
I know sonicWall is able to limit users/connections/LAN by destination Protocol, but it is not applicable on us. As I don't want to limit all the Protocol where our staff and our students are using the same protocol, but due to abuse the internet connection this Protocol is CAP and effect everyone.
I would be very grateful if someone could point me in the right direction.
Kind regards
I'm afraid that this is not possible right now.
I suggest to explore "basic bandwidth settings." This could be useful. More information below:
http://documents.software.Dell.com/DOC279003?ParentProduct=635
-
Hi all.
I put maxujobs = 60 in the Scheduler configuration, so that a user can not have more than 60 jobs running at once.
But what about the parallel jobs? If a user sends 60 parallel jobs (for example - orte EP 8), he will receive 480 slot machines!
I would like to set a limit on the maximum number of sites that a single user can get running at once... something like "maxuslots"...
I know that I can put the var 'niche roles' in the parallel configuration env, but would limit the number of parallel slots for all users as a whole, not on a per user basis.
Any comments/advice/help very welcome.
Best regards.
RobiHi Robi,
any chance that you have had time to try this out? He does what you want?
Let us know if not.Michael
-
How to limit rights to an Application Instance per user?
This excellent post, I learned that I we can assign a form field to the notion of the right of an Instance of the Application.
Is it possible to restrict the list of rights to an Application Instance per user?
I mean, is there a way to show for example all rights for a user and only one or two for user B when the user submitted a request for clearance of a specific Instance of the Application?
If so, is it possible to model the business logic using only the IOM or should I write my own business logic module for that?
TIA
Leo
Without custom code to set the users it will show for in the catalogue, the OOTB option is based on the membership of the organization. In the Administration Console system, if you go to all instances of the application, you can see which organizations you have published the application. The same goes for the rights of this forum, you can also see which organizations law is published on. It is the only default way to do this.
-Kevin
-
Hi all
Please find test data and results as XML and SQL output.
Version : Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
create table emp_xml (empno number, emp_name varchar2 (100), by e-mail to varchar2 (100));
insert into emp_xml values (100, 'DAVID',' [email protected]');
insert into emp_xml values (101, 'ROBERT',' [email protected]');
insert into emp_xml values (102, 'DANIEL',' [email protected]');
CREATE table emp_dept_xml (empno number, dept_list varchar2 (4000));
insert into emp_dept_xml values (' 100,'10, 20, 30, ");
insert into emp_dept_xml values (' 101,'40, 20, 10, 30, 50, ");
insert into emp_dept_xml values (102, ' 10'),
Expected in SQL output
-----------------------
EMPNO EMP_NAME EMAIL DEPTNO
DAVID 100 [email protected] 10
DAVID 100 [email protected] 20
DAVID 100 [email protected] 30
ROBERT 101 [email protected] 10
ROBERT 101 [email protected] 20
ROBERT 101 [email protected] 30
ROBERT 101 [email protected] 40
ROBERT 101 [email protected] 50
DANIEL 102 [email protected] 10
Results in XML
-----------------------
< USERS_DETAILS >
< USER >
< EMPNO > 100 < / EMPNO >
DAVID < NAME > < / NAME >
< EMAIL > [email protected] < / EMAIL >
< ASSIGNED_DEPT >
< DEPT > 10 < / DEPT >
< DEPT > 20 < / DEPT >
< DEPT > 30 < / DEPT >
< / ASSIGNED_DEPT >
< / USER >
< USER >
101/EMPNO < EMPNO > >
ROBERT < NAME > < / NAME >
< EMAIL > [email protected] < / EMAIL >
< ASSIGNED_DEPT >
< DEPT > 10 < / DEPT >
< DEPT > 20 < / DEPT >
< DEPT > 30 < / DEPT >
< DEPT > 40 < / DEPT >
< DEPT > 50 < / DEPT >
< / ASSIGNED_DEPT >
< / USER >
< USER >
< > 102 EMPNO < / EMPNO >
DANIEL < NAME > < / NAME >
< EMAIL > [email protected] < / EMAIL >
< ASSIGNED_DEPT >
< DEPT > 10 < / DEPT >
< / ASSIGNED_DEPT >
< / USER >
< / USERS_DETAILS >
Thank you
Rambeau
SQL> select e.empno 2 , e.emp_name 3 , e.email 4 , regexp_substr(d.dept_list, '[^,]+', 1, level) deptno 5 from emp_xml e 6 join emp_dept_xml d 7 on e.empno = d.empno 8 connect 9 by level <= length(d.dept_list) - length(replace(dept_list, ',')) 10 and prior e.empno = e.empno 11 and prior dbms_random.value() is not null; EMPNO EMP_NAME EMAIL DEPTNO ---------- -------------------- -------------------- -------------------- 100 DAVID [email protected] 10 100 DAVID [email protected] 20 100 DAVID [email protected] 30 101 ROBERT [email protected] 40 101 ROBERT [email protected] 20 101 ROBERT [email protected] 10 101 ROBERT [email protected] 30 101 ROBERT [email protected] 50 102 DANIEL [email protected] 10 9 rows selected. SQL> select xmlelement 2 ( 3 "USERS_DETAILS" 4 , xmlagg(xmlelement 5 ( 6 "USER" 7 , xmlelement("EMPNO", empno) 8 , xmlelement("NAME", emp_name) 9 , xmlelement("ASSIGNED_DEPT", xmlagg(xmlelement("DEPT", deptno))) 10 )) 11 ).extract('*') xml_output 12 from ( 13 select e.empno 14 , e.emp_name 15 , e.email 16 , regexp_substr(d.dept_list, '[^,]+', 1, level) deptno 17 from emp_xml e 18 join emp_dept_xml d 19 on e.empno = d.empno 20 connect 21 by level <= length(d.dept_list) - length(replace(dept_list, ',')) 22 and prior e.empno = e.empno 23 and prior dbms_random.value() is not null 24 ) 25 group 26 by empno 27 , emp_name; XML_OUTPUT --------------------------------------------------------------------------------
100 DAVID 10 20 30 101 ROBERT 40 50 30 20 10 102 DANIEL 10 -
FileVault2. The encryption is done on a per-user basis.
FileVault2. The encryption is done on a per-user basis, or if the entire disk is encrypted.
What is the best way to use FileVault2 on a new Mac, if there are multiple user accounts.
Concerning
the entire disk, but not all disks on the system as far as I KNOW.
-
If it hurts if I delete the system per user queued?
original title: DURING the DISK CLEANUP
WILL IT HURT IF I DELETE THE SYSTEM PER USER IN QUEUE AND WINDOWS ERROR REPORTING SYSTEM?
I'M RUNNING OUT OF ROOM AND WHAT ARE THE FILES DEVOURS MORE SPACE!Yo can do that, but you can't win important disk space. The three main newspapers are system, security and Application and each maximum by default 20 MB each.
How to deal with each must select Start, Control Panel, administrative tools, Event Viewer, Windows logs. Place the cursor on the system, click with the right button on the properties and select clear. Repeat for security and application logs. You can also change the default 20 480 KB 2 048 KB maximum. When you have completed the change make sure you click on apply. You must restart the computer to apply the new settings. You note miust use clearly if you want to set a lower maximum rate.
You'll have more space by deleting old restore points. This action can greatly increase the free disk space.
Select Start, all programs, accessories, System Tools, cleaning disk to emptying your trash, delete temporary Internet files and other selected options. I recommend also you click Other Options, System Restore and delete all but the last system restore point. Run Disk Defragmenter.
Using the system restore option is most appropriate when your system is slow and you need to increase the free disk space on your C partition. If you have errors that could be solved by using the system restore to your system settings back to before the error occurred initially do not use this option.
If more than one person uses the computer and they have their own user log you need to run Disk Cleanup in each user profile that you want to delete all the unwanted files.
A better program of disk cleanup is cCleaner. Delete System Restore points may be important if you have little free disk space. The ability to delete them is one of the tools options. cCleaner comes with a registry tool. Do not use this tool as any registry cleaner could lead to the creation of very difficult to resolve system errors.
-
Disk Cleanup for Vista reports 12.6 GB for "per user queued windows error reporting"
original title: clen-up diskMy Cleanup utility disk Vista reports 12.6 GB for "per user queued windows error reporting". Is it safe to delete this item? Is that why my laptop is slow today and still freezes?
Yes, but isn't concert read this this type of error: http://www.vistax64.com/tutorials/175654-disk-cleanup-windows-error-reporting-bug-fix.html
-
ACS 5.2 - Support for RADIUS attributes per user
Hi all
Does anyone know if it is possible to configure the RADIUS attributes on a per user in GBA 5.2 basis?
That was possible under ACS 4.x, however, that I can't seem to find reference if ACS5.2 supports.
Thank you
Leon
You can do this by setting by using attributes and then by substution attribute.
You can see an example of it to set an internal user attribute to use as the value for the field address-IP-box
This is just an example and can be applied also to any attribute RADIUS in which set an attribute of the user of the same type. Values can also be taken from an external identity as AD store
-
How can I set QoS policies on a per user basis?
I'm trying to figure out how I might be able to have the QoS policies to change on a per-user basis, so that different users on the same computer, they might have different QoS policies. I'm looking to avoid having to implement server (no advertising). If there was an easy GUI for admins to change the levels of QoS for the system, it would be a bonus.
Hello
The question you have posted is better suited for the TechNet forums. I suggest you to report the issue in the following link for assistance:I hope that helps! -
You can buy JUST Adobe Stock for three users in a company? The guy I chatted with that said I had to pay $199.99 per year over $ 69.99 per user. Is this correct?
When I go on the website of plan, it says 199.99 per license as well. Do we buy 3 licenses then 3 plans to 69.99 each apps? It's very confusing.
Well I advise you to contact Adobe sales for the same because they can help you with the correct plan according to your needs.
-
By the price di creativo su per user (not per aziende) viene Emese manufacture singolo cloud by fiscalmente ITALIA P.IVA valida
Hello
Purchase order, you will be asked to enter your VAT number, if you provide the VAT ID it will be printed on the invoice.
Update this thread if you have any other questions.
^ Ani
-
Creating native MSI bundle which is "per user" - based (no 'system' - based)
I'm collecting all the information to create a native MSI package which 'by user' is based - but failed.
This means:
(.) The MSI should install to the local directory of the user
(.) There should be no admin permission required
When you use the default < fx: deploy... nativebundle = 'msi'... > element - ANT-, the MSI is created "system-wide" basis, installation in ' / Prorgram Files "and asking the admin permission.
There is no concrete indication in the Oracle documentation (http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm) how to create "per user" basis of MSI files. Maybe, someone already did it and could tell the imprortant steps...
Thank you!
PS: I know - using the .exe-company with Inno Setup will create "by user" installers by default, but I don't want to use if possible .exeTry
Although the name of the parameter gives no indication this is system vs by user :)I checked that code bundler MSI and it should honour it.
Let me know if it works (I don't have the time to try it myself today and go on vacation for a week so won't be able to check until I'm back).
Mark
-
How can I set the limit of items per page on a web application / (paging).
I need this for pagination.
I learned that, by example, if I put the cut-off point at 10, paging will automatically appear once I get to 11 points.
The problem is that I do not know how the limit of benefit per page on a web app thanks.
When you insert the module into the page, you can specify the number of items,
{module_webapps, ID, filter, itemID, notUsed, targetFrame, useBackup, resultsPerPage, hideEmptyMes wise, rowLength, sort}
resultsPerPage - total number of items per page before using paging (limit of 500 items per page)
http://KB.worldsecuresystems.com/134/bc_1345.html?BC-partner#main_Web_App_Modules
Sanjit
Maybe you are looking for
-
I've never done a Time Machine backup and I have upgraded to iOS Sierra. Help!
I'm a fool. After owning my Macbook for 5 years, I failed to make a single Time Machine backup. I just saved my essential to an external hard drive. I have upgraded to iOS Sierra. Big mistake. I want to go back to iOS Capitan, but it does not seem po
-
When I right click on this box, I get a choice to show/hide, but it has no effect whatsoever. I want this crap out of my firefox window, there is no reason that this a stupid box faces a range of display space!
-
Windows Installer installed incorrectly
I tried to uninstall some programs and an error message came saying that Windows Installer did not work properly and could be installed incorrectly. Someone knows how to fix this? Also, I am running Windows Vista Home Premium.
-
service error 149 - 1920W rack UPS battery
Da few week unita UPS (rack 1920W) tell periodically error in oggetto. Dopo aver firmware it aggiornato, software it, resettato gli if the ibm_db non cambia. The error if presenta AC every 24 hours! Da quello che leggo sul web solution (f) e cambiare
-
Stencil Visio for NIM-2GE-CU-SFP
We try likely configurations document to replace our routers of the series 2900 and 3900 with the 4300 and 4400 series routers. Several stencils including lack the Stencil library. (1) redundant power for the router 4431 and 2 blocks) Module NIM-2GE-