Need help in user privilage and triggers
hi,
i need to create general users who can insert a row into a table but should not be able to delete any data, so which minimuim privilages i should assign.
grant connect session and grant resource or anything else?
and one more prob in triggers, i have written a trigger to trigger if expamt exceeds eclimit. i am gettin errors
create or replace
TRIGGER TR_EXCEEDLIMIT
AFTER INSERT OR UPDATE OF EXPAMT ON EXPENSEITEM
FOR EACH ROW
DECLARE
V_ECLIMIT EXPCAT.ECLIMIT%TYPE%;
BEGIN
SELECT ECLIMIT INTO V_ECLIMIT FROM EXPCAT
WHERE ECNO = :NEW.ECNO;
IF(:NEW.EXPAMT > V_ECLIMIT) THEN
INSERT INTO LOG_TABLE (excno, exctrigger, exctable, exckeyvalue, excdate, exctext) VALUES (LOG_SEQ.NEXTVAL, 'TR_EXCEEDLIMIT', 'EXPENSEITEM', :NEW.EINO, SYSTEMSTAMP, ('INSERTED OR UPDATED DATA OF EXPAMT EXCEEDS THE VALUE IN ECLIMIT');
ENDIF;
END TR_EXCEEDLIMIT;
errors
Error(7,30): PLS-00103: Encountered the symbol "%" when expecting one of the following: := ( ; not null range default character The symbol "%" was ignored.
Error(12,235): PLS-00103: Encountered the symbol ";" when expecting one of the following: ) , * & | = - + < / > at in is mod remainder not rem => .. <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between overlaps || multiset year DAY_ member SUBMULTISET_ The symbol ")" was substituted for ";" to continue.
Error(14,5): PLS-00103: Encountered the symbol "TR_EXCEEDLIMIT" when expecting one of the following: if
You don't need to select the (sys)timestamp from dual, you can directly assign it:
create or replace trigger tr_exceedlimit
after insert or update of expamt on expenseitem
for each row
declare
v_eclimit expcat.eclimit%type;
v_timestamp timestamp := systimestamp; -- or localtimestamp
begin
select eclimit into v_eclimit from expcat where ecno = :new.ecno;
if (:new.expamt > v_eclimit) then
insert into log_table
(excno, exctrigger, exctable, exckeyvalue, excdate, exctext)
values
(log_seq.nextval,
'TR_EXCEEDLIMIT',
'EXPENSEITEM',
:new.eino,
v_timestamp,
'INSERTED OR UPDATED DATA OF EXPAMT EXCEEDS THE VALUE IN ECLIMIT'
dbms_output.put_line('ERROR: EXAMT EXCEEDS ECLIMIT');
end if;
end tr_exceedlimit;You cannot use timestamp, but you can use localtimestamp or systimestamp.
See the Oracle Docs @ http://tahiti.oracle.com for more details on them (and triggers).
Also:
Error(15,5): PL/SQL: ORA-02289: sequence does not existCheck your LOG_SEQ sequence, does it exist and are privileges set correctly?
Edited by: hoek on Jan 26, 2010 8:20 AM typo in link
Similar Messages
-
Need help for user exit mereq001
Hi,
I need help for user exit mereq001. I think I messed up with include table CI_EBANDB and CI_EBANMEM. And When I tried to check the syntax . It gives me error like : <b>Class IF_PURCHASE_REQUISITION. Inconsistency in the dictionary for the structure mereq_item_s_cust_data.</b> Anyone had experience for this exit? I just need to extract costcenter information of the each item from the requisition and block the requisiton if the costcenter are differents from each other before the requisition is saved. Any one has idea about it?
Thanks.biao,
Have you checked this struture consistency from SE11. Also check the activation log.
If there are any errors and you are not able to rectify the same use RSDDCHECK program, give your table name and run the report.
This will list down the error structures releated this table and also prompts for you to activate it.
Regds
Manohar -
I need help, yesterday I installed and reinstalled the Yosemite system and take long to turn on my laptop, the bar takes to fill, and I'm worried.
Can you help? thankrevert back to Maverick that is what I had to finally do. This was the worst upgrade I have ever seen. Hopefully you have Time Machine backup and can revert back. It was pretty painless except for a few issues. I will wait until Apple gets their stuff together on this upgrade or may never will.
-
Need help with Blog, Wiki and Gallery
Hi Team,
Need help with Blog, Wiki and Gallery startup. I have newly started visiting forums and quite interested to contribute towards these areas also.
Please help.
Thanks,
Santosh Singh
Santosh SinghHello Santhosh,
Blog is for Microsoft employees only. However, you can contribute towards WIKI and GALLERY using the below links.
http://social.technet.microsoft.com/wiki/
http://gallery.technet.microsoft.com/ -
Need help FLASH not launching and not uninstalling "licensing for this product has stopped working" and " you can only install one adobe product at a time please complete the other installation" Flash was working absolutely fine before, I have no idea why this happened.
I am having similar problem. Can't open any of CS3 programs after trying to download Dreamweaver Trial, which wouldn't work because "couldn't remove DLM extention" error message. So now I can not run Illustrator, Photoshop, or even Adobe Reader. These are properly licensed for about a year. I get "License for product has stopped working". Have 2 pending cases open with Adobe support (one for Dreamweaver trial, one for license problem) since 8/3 with NO ANSWERS - It says answers within 1-3 business days. Was on phone support hold today for over 3 hours before line went dead with no help. What is up with adobe support? Can anyone help?
-
I need help importing navigation bars and rollover buttons from fireworks?
I need help importing navigation bars and rollover buttons from fireworks, drop down menus and rollover states won't work!
ThanksIn my experience, the code created by graphics apps is less than satisfactory. And image based menus are very awkward for several reasons.
#1 If you decide to change your menu later, you must go back to your graphics app and re-craft the whole thing. After 2-3 times of this, it gets old in a hurry.
#2 Image based menus cannot be "seen" by search engines, screen readers and language translators.
#3 CSS styled text menus are better for your site's visibility, accessibility and they are a snap to edit in Dreamweaver.
That said, if you're still married to image based menus, use Fireworks to create images only. Use Dreamweaver's Image Rollover Behaviors to create your rollover scripts.
Nancy O. -
I need to change user name and password on my macbook pro
I need to change user name and password on my Macbook Pro OS version 10.6.8. As I purchased it used and can't remember what user name and password the original owner gave me. I need to install printer drivers and can't until I can sign in.
Reset the computer to the factory condition.
Giving away / Selling your Mac / Resetting the computer to the factory condition
http://support.apple.com/kb/HT5189
http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/ -
Need help with many devices and one itunes account!!
I recently purchased each of my kids an Ipod Touch. They all three are now using my Itunes account which has become a little bit of a problem. The biggest issue now is with iMessage. When a friend send a text message or tries to Facetime one of the kids, we all get the message. They are all using my itunes account user name and password, for apps, music, etc....
What's the best way to seperate the three devices so they aren't all getting the same text messages? Also, is it best to set up their own user accounts to sync their ipods with itunes?
Any help would be appreciated.If you want to use only one AppleID account for multiple devices but seperate imessage, you will have to use different email address to differentiate the device.
I would assume all your devices' imessage are setup under your AppleID email address.
First go to your kid Device's SETTINGS/MESSAGE/RECEIVE AT, Add another email address, type in email address of your kid(you will be asked to enter your Appleid password). Once done, an email from Apple will be sent to this new email address to verify. When your kid receive this email, click "Verify Now" link. The new email address now is ready for imessage.
Now go back to the same Device SETTINGS/MESSAGE/RECEIVE AT, go into your original email(your AppleID email) and tap "remove this email". This will prevent your own imessage to appear on this device.
Do the same for all other devices for other kids.
You don't need to change anything for your own device.
That mean everyone will have an indepedent imessage based on their own email address.
Hope this explains. -
I am trying to automate and serialize a silent installation for PSE 12. I have a volume license for 50 users. The old Silent Install command (PSE 11) no longer works for a silent install (PSE 12). I need this routine to suppress the EULA and any other user interaction required. Additionally I need the installation to NOT require end users to Login using an Adobe Digital ID.
I've attempted to try the "Solution" found here: http://forums.adobe.com/message/5945374 . So far I've been unsuccessful. Here are the steps I've taken thus far.
Copied install files to a network drive.
Installed PSE 12 on a local Computer and using the Volumn Serial Number and Registered the program.
Downloaded the latest version of APTEE.
I've ran Ran the following on the registered computer successfully with a return code of 0: adobe_prtk.exe --tool=VolumeSerialize --generate --serial=<<Volume SN>> --leid="V7{}PhotoshopElements-EMT12-Win-GM" --regsupress=ss
The following failed with a return code of 19 and an error messager of Could not find prov.xml: adobe_prtk --tool=VolumeSerialize --provfile="absolute path to prov.xml"
Please help.
Thank YouToadpole wrote:
They informed me that it's impossible to do a silent install and surpress the EULA.
That seems at variance with the example code in the links I posted:
Have you gone to chat via the Volume Licensing support page - http://helpx.adobe.com/x-productkb/policy-pricing/avl-help.html. There is reference on that page to the Enterprise Deployment Forum (it seems more geared to Cloud subscriptions, but there are people posting Elements questions).
Cheers,
Neale
Insanity is hereditary, you get it from your children
If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks. -
Need Help! I Uninstalled and reinstalled and still can't run ITUNES-missing file
I need HELP! I uploaded the latest version of Itunes and had trouble. I followed the directions and removed all the dll files to the desktop. I un-installed and tried re-installing Itunes and it still won't work. There are no previous versions found on my computer. HELP!!! I need my ITUNES BACK!
MSVCR80.dll is the error message I recieved. I followed the directions and removed all dll files from the folder and to the desktop as instructed.
Many thanks. Doublechecking: did you also work through the following user tip?
Troubleshooting issues with iTunes for Windows updates -
Need help in getting 'RoleApprover' and 'Manager of RoleApprover'
We are developing a Custom Role Approval Process using SOA composite.
A manager or a delegated admin will be raising a Role Approval request for a beneficiary. We need to assign the Approval task to beneficiaries' manager or Role Approver.
If the RoleApprover does not Approve the task in stipulated time, the task needs to get escalated to RoleApprover's manager.
I'm new to OIM APIs, i was folllowing the tutorial "developing_oim_custom_approval_process_for_role_request.pdf". This needs an user defined field 'RoleApprover' created in the Role request form. We cannot create user defined field in the role request form.
I need help in getting the 'RoleApprover' and the 'Manager of RoleApprover' programmatically.
Payload from the OIM Approval request follows:
<ns2:process>
<RequestID>176</RequestID>
<RequestModel>Assign Roles</RequestModel>
<RequestTarget>Onhand Quantity</RequestTarget>
<RequesterDetails>
<FirstName>Steve</FirstName>
<LastName>Waugh</LastName>
<Login>STEVEWAUGH</Login>
<DisplayName>Steve Waugh</DisplayName>
<ManagerLogin>XELSYSADM</ManagerLogin>
<OrganizationName>Test</OrganizationName>
<Email>[email protected]</Email>
<Status>Active</Status>
<XellerateType>End-User</XellerateType>
<UserType>Full-Time</UserType>
<Role>ALL USERS</Role>
<Role>Primavera P6 - Global</Role>
<Role>iProcurement Catalog Administrator</Role>
<Role>Onhand Quantity</Role>
<Role>Test Purchasing Super User</Role>
<Role>Test Delegated Administrator</Role>
<Role>HELPDESK ADMINISTRATORS</Role>
<Role>Test e-Commerce Gateway Super User</Role>
<Role>eBusiness Finance</Role>
<Role>Test Line Manager</Role>
<Role>Test_ApplicationApprover</Role>
</RequesterDetails>
<BeneficiaryDetails>
<FirstName>David</FirstName>
<LastName>Boon</LastName>
<Login>DAVIDBOON</Login>
<DisplayName>David Boon</DisplayName>
<ManagerLogin>STEVEWAUGH</ManagerLogin>
<OrganizationName>TestCO</OrganizationName>
<Email>[email protected]</Email>
<Status>Active</Status>
<XellerateType>End-User</XellerateType>
<UserType>Full-Time</UserType>
<Role>ALL USERS</Role>
<Role>Hyperion</Role>
<Role>Test Purchasing Administrator</Role>
<Role>Test Internet Expenses Audit Manager</Role>
<Role>Test Internet Expenses Auditor</Role>
</BeneficiaryDetails>
<ObjectDetails>
<name>Test Onhand Quantity</name>
<attributes/>
</ObjectDetails>
<url>
http://host:port/workflowservice/CallbackService
</url>
<OtherDetails/>
</ns2:process>
Edited by: rajesh on Feb 13, 2011 9:00 AMChoose Xerces2.4 to serialize the DOM object is an option.
javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
below is the source file: XercesTest.java
//JAXP
import javax.xml.parsers.*;
import org.w3c.dom.*;
//APACHE SERIALIZE FUNCTION
import org.apache.xml.serialize.*;
class XercesTest
public static void main(String[] args) throws Exception
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse( new File( args[0] ) );
File f = new File( "copy_of_"+ args[0] );
OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
FileOutputStream fout = new FileOutputStream( f );
XMLSerializer ser = new XMLSerializer(fout, format );
ser.serialize( doc );
maybe it's helpful
land -
I need help connecting my iPhone and computer together.
I need help connecting my iPhone to computer
Howdy sprinklemk,
Welcome to Apple Support Communities.
Take a look at the iPhone User Guide, it answers your question about how to connect your iPhone to your computer and provides additional information that you may find helpful.
http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
You may need to connect iPhone to your computer in order to complete activation. Connecting iPhone to your computer also lets you sync photos and other content to iPhone from your computer, using iTunes. See Sync with iTunes on page 18.
To use iPhone with your computer, you need:
An Internet connection for your computer (broadband is recommended)
A Mac or a PC with a USB 2.0 or 3.0 port, and one of the following operating systems:
OS X version 10.6.8 or later
Windows 8, Windows 7, Windows Vista, or Windows XP Home or Professional with Service Pack 3 or later
Connect iPhone to your computer. Use the Lightning to USB Cable (iPhone 5 or later) or 30-pin the other device.
Cheers,
-Jason -
Need help with Airport Express and so on.
Ok so my main problem before getting into what I need help with here is that our MacBooks and now my iPhone 6 plus isn't staying online. Keep getting booted off and then I either have to select the network again or it will eventually go back on. If anyone has a solution or so please feel free to answer that as well. I'm running on Roadrunner with a Netgear 600 wireless router and a motorola modem. Both of which I'll leave the link to below for a better look.
My Main Question: So I'm looking at a new wireless router mainly and possibly a new modem. I know Apple products are trustworthy but how good is the Airport Express and other Airport products. Also what is the Maximum speed and Maximum data speed for the cheapest express station and if anyone knows the speeds of the other devices it would be greatly appreciated.DSL Router to Netgear 5-port Switch and I used the switch to connect to Airport Extreme, TV, Blue-Ray DVD player and DirecTV Receiver.
The AirPort Extreme base station (AEBS) is a router so it will do what you need.
You need to reconfigure your setup. Connect the WAN port of the AEBS to the DSL router. Then connect the Netgear switch to one of the LAN ports on the AEBS. The AEBS will properly share the connection. -
FCP Novice needs help with video quality and FCP 5!!
Hi,
I have a real problme that I cannot seem to fix. I think its because I am doing something really wrong!
I have a Sony HC42E MiniDV Camcorder which by default records video in full widescreen. I recorded several tapes this way and have now begun trying to edit them in FCP 5.04 (Tiger 10.4.6). Whenever I log and capture my clips they appear to be fuzzzy and unclear on the Mac monitor whilst being totally crisp and sharp on the camcorder viewfinder. I tried capturing using the DV PAL 48Khz Anamorphic Preset which keeps everything the right size (the final output needs to be true widescreen and not with black bars added) but the resulting video on screen is blurry and bitty. I then tried capturing using the DV PAL 720 x 576 normal preset and the video is a little clearer on the screen (for both presets I have chosen lower field dominance) but when I play back it plays back in widescreen on the mac canvas window but at 4:3 on the camera's viewfinder.
I then assumed that maybe this is just becuase the mac screen (CRT by the way) doesn't use fields. So I exported the sequence as a QT movie using DV PAL 16:9 and used quicktime (OS9 Classic - my compressor has never worked because of the dreaded "unable to connect to baackground process" problem which I've never managed to correct) to convert it to MPEG2. When I import this as an asset into DVD Studio pro 4 and set the track size to 16:9 it comes through at the right aspect ratio. However it looks blurry on screen. Thinking that this will be fine on a TV I burned the disc - inserted it into my DVD player (a good one!) and watched it on my new 32" widescreen TV (a good one!) and the picture qualitty is poor. Its so much blurrier and bittier than the original footage looks when played through the camcorder's viewfinder!
The final footaage looks like an old VHS recording that's a year or two old!
Does anyone know how I can capture my footage in FCP with the maximum quality, edit it without quality loss and the export it for DVD again without such significant quality loss whilst all the time keeping it at proper 16:9 widescreen?
Is there some presets I should be working to?
I'm tearing my hair out! Help!Hi Guys,
thanx for your replies.
here's the latest:
Brian, I followed your instructions and the DVD burned successfully. However the video quality of the dvd when viewed on my TV ('ve tried on all 3 of my tvs now) is still a lot poorer than the quicktime movie that was imported into DVDSP4. When I play the original QT Movie on my Mac CRT monitor it looks a little blurry and grainy because I guess its non interlaced however when viewed on an external Video monitor it looks great - very sharp.
When I view the burned DVD on my television the picture quality looks like the non interlaced version of the original QT Movie that appeared on my Mac CRT and not the sharp interlaced (lower field) version that appeared on my external video monitor.
Its almost like taking a sharp jpeg into Photoshop and applying a gaussian blur of about 0.3 followed by jepg compression compressing it down to 5% quality!
I'm totally mystified. Can the conversion to Mpeg2 be removing all interlacing so that you get the less sharp computer monitor look? I just want the video on my final DVDs to be as good as the original source footage! I appreciate that along the way there might be loss of some quality but surely not that much?
Does this make sense to you guys or am I still doing something very wrong?
Robert: I have tried setting all manner of drives including a fresh external firewire HD with nothing on it (clean out of the box) but it doesn't seem to help.
Brian: I tried the no network suggestion a few months back but I'm not sure if I got it right. At the moment I have broadband through an external speedtouch usb modem and am also connected (occasionally although not for the last 3 months) via a crossover cable to my PCs ethernet card. When I last tried the No Network solution I had immense trouble getting my internet to work again! Can you please help me by directing me to the best ay to do this while protecting my internet settings?
any more help guys would be greatfully appreciated. -
Need Help with complex query and computing values
I have an issue trying to combine data from several tables. I need help trying to compute the "Total Hours", "Max Pressure" ,"Average Pressure" while displaying the "Manufacturer",
"Part Type" , "Serial Number", "District", "Status","Truck Type",and "truck number" for a certain Part on all Trucks. I need to be able check and see if the serial number was on
a particular job and calculate the hours of that serial number if it was on that job and the jobdate falls between the install date and removal date. Ive tried but keep getting either
repeating rows, total hrs of the truck instead of the serial number. Ive considered doing a pivot to display it but have been having trouble putting it together.
table 1
(*records of parts*)
Contains serial number,truck number, part type, part number, install date, removal date, status
table 2
(*records of Jobs*)
contains Jobnumber, JobStartdate, Max pressure, average pressure, and Totalhrs
table 3
(records related to jobs and trucks)
contains jobnumber, district , and truck numbers
Table 4
(records of manufacturers and part numbers)
contains partnumber, manufacturer name, and truck type
I would like to get it to show like below
SerialNo PrtType
MFG TruckNo
TrkType TtlHrs
MaxPr AvgPr
Status
Dst
AB345 1200series
NGK 2G34
Boss X 400 10,000
9500 NonOp
NE
Thanks in advanceHope this helps
Note: (Date of Mar 1 2014 was just extended to a further date so the system would know that its still operating when calculating current hours)
Table 1
SerialNo TruckNo InstallDate RemovalDate Status PartNo PartType
BJ1002 F917 2013-09-17 2014-03-01 Oper L871235 BJ 3000 GL
CWS1002 F104 2012-11-21 2013-03-29 NonOper L76088-450 CWS 2000
CWS1003 F104 2013-04-24 2013-08-01 NonOper L76088-450 CWS 2000
CWS1005 F187 2012-11-21 2013-04-04 NonOper L76088-450 CWS 2000
CWS1006 F187 2013-04-24 2013-06-30 NonOper L76088-450 CWS 2000
CWS1007 F187 2013-06-30 2013-03-01 Oper L76088-450 CWS 2000
CWS1009 2F60 2013-05-05 2013-03-01 Oper L76088-450 CWS 2000
CWS1011 F809 2013-05-28 2013-08-28 NonOper L76088-400 CWS 2000
CWS1013 F990 2013-06-11 2013-10-29 NonOper L76088-450 CWS 2000
CWS1015 F783 2013-06-28 2013-03-01 Oper L76088-450 CWS 2000
Table 2
JobNumber Date District PrAvTreat PrMaxTr TotalHrs
553811287 2012-01-19 Fairmount 7337 8319 1.53
652110088 2012-08-20 San Antonio 6340 7075 0.47
652110090 2012-08-21 San Antonio 6134 7131 0.62
652110091 2012-08-22 San Antonio 6180 2950 0.58
652110092 2012-08-23 San Antonio 5959 6789 0.64
652110093 2012-08-23 San Antonio 6165 7466 0.62
Table 3
TruckNo District JobNumber
1F01 Odessa 10011012329
1F01 Odessa 10011012333
1F01 Odessa 10011014831
1F01 Odessa 10011014834
1F01 Odessa 10011012332
1F01 Odessa 10011012328
1F01 Odessa 10011014829
Table 4
PartNumber Manufacturer TruckType
L322020-2 Jimmy Dean Ford T
L322738-2 Lucas Ford T
L47869-1 Jimmy Dean Ford T
L76070-650 NGK Ford T
Sam Howard
Maybe you are looking for
-
HT204053 apple id wrong on computer how do i change it
Changed my password on my phone now everytime i log onto my mac book pro it pops up with wrong email address and cant figure out how to change it
-
Color Correction + DVD/MPEG Compression Produced Noise
I recently color corrected a 3-hour rock concert using FCP and a broadcast monitor. When played from the timeline the concert looks great however after outputting, MPEG compression and authoring a DVD there's video noise over the image. Almost snow l
-
Cannot create Portal System and Alias in System Landscape in Portal
hallo all, i want to install vc, therefore i need to create an Portal System and Alias. this i should do in system landscape in the portal (System Admin -> System config -> System landscape )! but when i open it, it is loading and loading and nothing
-
Best file format to send from LR5 to PSE10
What is the best file format to send from LR5 to PSE10 - PSD, TIFF or JPEG? I want to be able to post the picture on Flickr after editing.
-
Finish Date in the Project Definition / Network Header
Dear Experts When I am creating project through CJ20N, system by default putting current date as finish date. for both project definition and network header. How can I make it start date. Thanking you. Best Regards, Abdul.