Suggestions please
Hi Everyone,
May be if I explain it in detail someone can suggest something. This involves Oracle Label Security tables.
I’m taking the results from a PL/SQL table which is a single column one dimensional array and using those results as variables to look up a long name for it. As an example
The first row of LABEL_TABLE(v_rows) = S
It is used as a variable to look up in the LBACSYS.SA$LEVELS table the long name, in this case SECRET. The same procedure is used for GROUP and COMPARTMENT too.
I provided some actual output to help visualize.
DESCRIPTION OF PROCEDURE:
This Procedure is to insert the long name and where appropriate also insert the colon and commas. The last value at the end of the string will not have a comma or colon.
TEST DATA:
The only 4 situations that can be produced are the following:
1. execute sys.ps_LN11('s'); Level only returned.
2. execute sys.ps_LN11('s:a,d,s_2'); Level and Compartment only returned.
3. execute sys.ps_LN11('s:a,d,s_2:usa,b,s'); Level, Compartment and Group returnd
4. execute sys.ps_LN11('R:usa,b,s'); Level and Group only returned.
There can never be a compartment or group returned without a level component.
Test data #’s 1,2,4 all work out fine returning the right values.
1. SECRET
2. SECRET: ALPHA, DELTA, SAM_2
4. RESTRICTED: UNITED STATES, GREAT BRITIAN, SPAIN
Test data # 3 on the other hand returns the following:
SECRET: ALPHA, DELTA, SAM_2, UNITED STATES, GREAT BRITIAN, SPAIN
The comma located between SAM_2 and the UNITED STATES should be a colon :.
This is my problem and am unable to solve it. I cannot seem to be able to identify a variable that will tell me when I have come to the end to then make the change. I hope by presenting my procedure that someone would be able to make a suggestion or two to help resolve this shortcoming.
Here it is in full.
CREATE OR REPLACE PROCEDURE PS_LN11 ( string_in IN varchar2)
IS
label_table sys.ps.atoms_tabtype;
label_total number := 0;
-- delimiters declared in header.
level_string varchar2(15);
comp_string varchar2(15);
group_string varchar2(15);
total_rows BINARY_INTEGER ;
v_rows BINARY_INTEGER :=0;
banner varchar2(500);
/* This procedure takes a string that has been parsed into it's individual atomics and finds
the long name in the system table of which there are 3. The long names of each are returned
in one string with the appropriate separators added.
BEGIN
ps.parse_string(string_in, label_table, label_total, ': ,' );
ps.display_atomics(label_table, label_total);
total_rows := label_table.COUNT;
DBMS_OUTPUT.PUT_LINE (total_rows);
v_rows := v_rows + 1;
/* Now loop through the lable_table sequentially, identify the component as either a "Level",
"Compartment" or/and "Group". Remember the compartment is optional and may not exist at
the same time the group can. Convert the short name to the long name. You find the answer in the system tables.
BEGIN
--LEVEL COMPONENT.
SELECT NAME into level_string
FROM LBACSYS.SA$LEVELS
WHERE CODE = UPPER(LABEL_TABLE(V_ROWS));
IF label_table.COUNT = 1
THEN
banner := level_string;
DBMS_OUTPUT.PUT_LINE(level_string);
ELSIF label_table.COUNT > 1
THEN
banner := level_string||':';
DBMS_OUTPUT.PUT_LINE(banner);
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
--COMPARTMENT COMPONENT. This section is the problem child.
-- I can’t identify what I need to test for to insert the colon between the
--compartment and group.
BEGIN
WHILE v_rows <= label_total
LOOP
v_rows := v_rows + 1;
SELECT NAME INTO comp_string
FROM lbacsys.sa$compartments
WHERE CODE = UPPER(label_table(v_rows));
banner := banner||' '||comp_string||',';
DBMS_OUTPUT.PUT_LINE(banner);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
--GROUP COMPONENT.
BEGIN
WHILE v_rows <= label_table.COUNT
LOOP
SELECT NAME into group_string
FROM LBACSYS.SA$GROUPS
WHERE CODE = UPPER(label_table(v_rows));
V_rows := v_rows + 1;
banner := banner||' '||group_string||',';
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
BEGIN --This strips the comma from the end of string
--for Level: Compartment
-- Level: Group
banner := RTRIM(banner,',');
DBMS_OUTPUT.PUT_LINE(banner);
END;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
Here is some actual output:
SAMPLE OUTPUT:
SQL> execute sys.ps_LN11('s'); Level only
s
1
SECRET
SECRET
PL/SQL procedure successfully completed.
SQL>
SQL> execute sys.ps_LN11('s:a,d,s_2'); Level: Compartment
s
a
d
s_2
4
SECRET:
SECRET: ALPHA,
SECRET: ALPHA, DELTA,
SECRET: ALPHA, DELTA, SIGMA_2,
SECRET: ALPHA, DELTA, SIGMA_2
PL/SQL procedure successfully completed.
SQL>
(PROBLEM RESULT the comma located between the SIGMA_2 and UNITED STATES should be a colon.)
SQL> execute sys.ps_LN11('s:a,d,s_2:usa,b,s'); Level: Compartment: Group
s
a
d
s_2
usa
b
s
7
SECRET:
SECRET: ALPHA,
SECRET: ALPHA, DELTA,
SECRET: ALPHA, DELTA, SIGMA_2,
SECRET: ALPHA, DELTA, SIGMA_2, UNITED STATES, GREAT BRITIAN, SPAIN
PL/SQL procedure successfully completed.
SQL>
SQL> execute sys.ps_LN11('R:usa,b,s'); Level: Group
R
usa
b
s
4
RESTRICTED:
RESTRICTED: UNITED STATES, GREAT BRITIAN, SPAIN
PL/SQL procedure successfully completed.
SQL>
Thanks in advance for any help on this that you can provide.
Al
from the manual
THE POWER KEY turns on or off both your STB and TV when you are in STB mode. (If you have a DVR STB, the DVR will continue to record scheduled programs when off.) However, you can re-program how the Power Key works.
1. Press and hold the STB Key
2. While holding down the STB Key Press OK
3. Release both keys. The Device Keys will blink twice.
4. Press 9-7-7 The STB key will blink twice
5. One after the other, press each Device Key you want the Power Key to control in the order you want them to turn on or off.
6. Press OK when done. The STB key will blink three times to indicate success.
For example to program the power key to turn on or off your TV, AUX and STB, in that order, with one press of power you would press (STB + OK) 977, TV once, Aux once, STB once, and then hit OK
http://www22.verizon.com/NROneRetail/NR/rdonlyres/2DEF67C9-87F0-4B46-B1BD-A40472BC281A/0/PhilipsRC14...
that should help you make it so the tv and the box turn on at the same time.
Power
If you want the Power Key to control multiple devices at once…
For example, to program the Power Key to turn on or off your TV, AUX and STB, in that order, with one press of
Similar Messages
-
I cannot send email over 3G. receiving email over 3G is ok. Using wifi from my landline (glass) is ok. No idea where to find the solution. Suggestions please. Thanks i.a.
TheOneYou need a DATA service enabled by your carrier to be able to send e-mail via thier network. Do you have a data plan with your carrier ? If so - is it enabled ?
Can you access internet thru your network (not wifi) ? -
Hi, I reecntly purchased a Mac and the Pages App. But now I find that I cant open a document I have been working on. It has previously been saved without a problem now all I get is a box stating that the file cannot be opened. It is visible in both the Pages Windows and under Recent Items but just will not open. Any suggestions please?
Hi Colourdoodles,
Maybe the document is corrupted. Can you open other Pages documents? Preview may open it. Right click (or control click) on the document in Finder and Open With > Preview.
If that works, Edit > Select All, Edit > Copy. Then paste into a blank Pages document. Formatting may be messed up, but you will have editable text. Then Save (with a different name), close and see if you can open the new document.
Regards,
Ian -
* Open Firefox
* Use Google search
* Visit one or more sites
* Exit sites[s]
* Close Google
* Firefox appears to be closed - icon normal
* Attempt to re-open Firefox - nothing happens most times
* Can only re-open Firefox after doing a re-start
* I am no computer expert so simple to understand suggestions please!HI Noah:
Thanks for your answer. I'm working my way through the blog, and trying to take all of the steps. Hitman Pro did find 5 trojans, and many remnants of other malware, so hopefully that will help. I'll post again when I've finished trying everything else.
I had already run Malware Bytes, It did not find/remove the sweetim toolbar, but found a different trojan. Something is up with my antivirus I think. -
My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that o2 account (offline) my mac I have no problem with my iPhone or mac laptop. any suggestions please.
Sorry for the delay...
I did what you've told me, new account and manually copied my files from Time Machine. I had lots of permissions problems, but at the end, almost everything is in order... It seems it had to be with some of the Apple Preferences, but I can't be sure, as most of them were dumped to the trash can.
I still don't have my Mail Rules back, unfortunately, although I did goggled some. It is a pity, as I had around 30 or 40 of them, getting my mail in order to each of its mailboxes, but it is a small price as the rest doesn't show the before syntoms.
Thanks for the help, anyway!! -
I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record. Although when I play the same song over again, the "miss" occurs in a different location during the song. No probs with old computer, just the new one. I'm onto my third new computer - same problem. Any suggestions please?
You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
There is an alternative version for 64-bit editions of Windows here:
iTunes 12.1 for Windows (64-bit — for older video cards)
that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent. The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer. The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8). It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers. -
Where can I see the downloads LIST when downloading podcasts,
like in the older version of iTunes? I find it frustrating that I see only one
download at a time now ! Any suggestions please?Thanks for taking a stab at it: that didn't prove to be the problem. That option in the settings for tabbed browsing was not checked.
I may be a bit behind the times: I am used to tabbed browsing showing all the tabs it possibly can, instead of just the last one. Sometimes it won't even show the last tab: I can have 15 tabs open, and not see a single tab. I've been confused by this into closing a window with lots of tabs open, because it looks like a single page-window.
My main problem with the tab-bar flashing to the end of the row is that it means a great deal more mouse-clicking around to browse.
I haven't tried installing the latest beta. Maybe that would fix the problem.
Toddo -
i Tunes will not let me play purchased songs from a computer that is broken, and which has a previous e-mail address. I am at my wits end, as whenever I try to play the songs I receive a message to authorise the computer I am using with my dead e-mail address. I end up in a mess, changing I-Ds, etc. I have paid an IT company to sort things out, with some success, but still I keep getting thiese messages. Surely iTunes should be less complex than this. I am not brilliant with IT, but not at all stupid. Any suggestions please?
1. The forum suggestions and feedback section is not the proper section of this forum, as you question/issue is not an idea or feedback about this forum.
2. Reason : You have installed Desktop Manager using the 'Desktop Redirector' option.
Step 1: If you're not using Redirector, you should uninstall Desktop Manager and then reinstall it using the BlackBerry Internet Service option.
Step 2: On your device, go to: Options > Advanced > Service Book, and delete all service books for [Desktop]
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Hello, hope someone can please help. I've had my iPhone 18 months, not had any problems with using it. Trying to update the software to 4.0 on iTunes but it's just not recognizing it at all. It's not there under devices (infact, even the heading "devices" isn't shown), Tried a different USB port but that didn't solve it.
Have changed my startup (using msconfig) as Apple suggested, but again still nothing. Have downloaded the latest iTunes and *again* not working!!!!
Any suggestions please?Perhaps you have already done this, but I'd be sure to verify that it's not your cable...try a different cable and that will eliminate that as a source of the error.
-
I can't burn a cd of my own created music. I either get the error 4261, or after "Checking media" the process stops and nothing further happens. Have tried different burn speeds and cds. Have re-installed iTunes.Any suggestions please?
wm0203Sounds like the CD drive died. Luckily they cost next to nothing to replace. Or get an external LaCie instead. I have a dual G4 1.25 and the CD drive was always so anemic I use a LaCie Porsche with it.
-
After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please? I am currently using iOs 7.0 on this iPad and I never had a lick of trouble until aetr this update. Anything would help. Thanks.
I'm adding screen shots taken from this afternoon showing connection that varied from non-existent to 1X.
-
Hi, my iphone 5 encountered an unknown error while updating to iOS 7 via itunes and is now stuck in recovery mode and prompts me to restore the phone when I connect it to itunes but then I would lose all my data. I DO NOT have any back ups on itunes. Is there anyway to get out of recovery mode without restoring or recover data after a restore?
Or any other suggestions please? ThanksAs pdroth said, you should have gotten a backup made when you started the update of iOS. If you cannot find a backup, and the phone is in recovery mode, there are no futher suggestions to make. To get the phone working again you have to restore. You cannot force a backup at this time since it is already in recovery mode. It will not allow anything else but a restore at this point.
-
My daughter disconnected her iPod nano from the lead before ejecting the device. It no longer syncs and we have re-set the device, but it now only occasionally appears on the computer screen any suggestions please?
Restoring the iPod will do nothing to his iPhone.
When you restore it wipes the iPod clean no matter what computer you use.
The only plus to doing it form your home computer is if you have a backup stored there, then you can restore from the backup once it's done wiping.
If you are away form your home computer, go ahead and use the computer you have to restore it, then when you get home, you can restore form any backup you may find. You can use this to help you do that when you get there: http://support.apple.com/kb/ht1766 -
Hi I Have an Ipod classic.My problem is that the Ipod seems to sync music ok but I have a number of podcasts downloaded to itunes but these don't sync to the ipod,(they have in the past,but no longer). Has anyone any suggestions please ?
hi gary
have you tried to sync your ipod ,when you click on the side where it shows your ipod?
Click on where it shows your ipod name for example garys ipod,when it opens up the summary page click the sync box,bottom right,and see if that helps.
In the summary page click on podcasts,click the box on sync podcast box (top),read before when the box opens and says are you sure you want sync podcasts.,theres a box underneath,which says automatically include ,make sure thats ticked.
hope this may help madforit -
I am using ethernet and am using a Linksys SE1500 5- port fast etherner switch, i cant seem to sign in on the apple for anything although I have accounts set up in itunes/apple and netflix . Any suggestions PLEASE have spent 3 hours trying everything I can think of. Any help will be appreciated!
I have a linksys router but it isn't strong enough to get to this computer, so we are using ethernet.
Thank you
ColleenWelcome to the Apple Community.
Are you getting any messages about date and time.
Have you tried restarting the Apple TV by removing ALL the cables for 30 seconds.
Are you connected to the network correctly. -
I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?
I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?
Maybe you are looking for
-
Basic questions about macbook pro + external monitor
Hi, I have some very basic questions about using a Macbook Pro + external display. I don't actually have them but need to know how things works. So, here they are: 1) Can I use the external display as the main display? 2) Will the external display ru
-
Adobe Illustrator CS2 OLE Library
Does anyone know where i can find a library to access (from Visual Basic) the object model of Adobe Illustrator CS2 ? With adobe illustrator 9 there is a scripting plug in which installs a .tlb library Is there something similar to that ? Please help
-
I love using Siri and your maps. But in Costa Rica, your maps lack of businesses data, and Siri is unable to provide any information about them, since this information is missing. I want to offer my time and work for free to help to populate this i
-
Edit(pencil) button gone?
Hi all, I am just new to apex, I am using the default in 10gXE apex2.0. I am creating a report region using the report wizard, for each table/region page. I can see the edit(pencil) at the beginning of the row , but sometimes it is at the end of each
-
Edit Customer Problem and Logical Port
Hi Experts, ISSUE 1 In Web Service Administration, when I look at /iwcnt/actionitemvi_document service in details, I can see one Endpoint only, that is Binding_T_HTTP_A_HTTP. In the Troubleshooting Guide, in section 5. No Workflow / Reports reach the