LIMIT Command through OLAP_TABLE
Hi,
I have a program within an AW that limits the dimensions to the values I am interested in. While acessing data from the AW through OLAP_TABLE, I call this program in the parameter that allows me one DML command. When the data is returned, I see that while most dimensions are limited as per the program, some are not. Running this program directly from the OLAP Worksheet causes the program to behave properly, with all dimensions being limited as per the program - it is only from OLAP_TABLE that this strange behaviour is observed.
Can anyone help?
Thanks and regards
Hi Caleb,
Thanks for the response. Consider the following syntax:
OLAP_TABLE(
aw_attach IN VARCHAR2,
table_name IN VARCHAR2,
olap_command IN VARCHAR2,
limit_map IN VARCHAR2);
I have called my program in the olap_command parameter. There are no hierarchy specifications in the limit_map, no PREDMLCMD, no POSTDMLCMD, no WHERE clause. From what I understand from the OLAP User's guide, the command in olap_command are executed first - meaning that my program should get executed first, and so all dimensions should be limited as per that program. And yet that is not the way it seems to work - on some dimensions it does, on some it doesn't. But when I call the program directly from the OLAP Worksheet, it works perfectly.
Any ideas?
Similar Messages
-
ICMP unreachable, rate-limit command
Hi !
I'm currently working on projet of network hardening.
Based on Cisco security best pratice, I see it's recommand to rate limit genaration of ICMP unreachable message to prevent DoS attack. (according to document : http://www.cisco.com/application/pdf/en/us/guest/netsol/ns171/c649/ccmigration_09186a0080825564.pdf page 74)
On Catalyst 6509 run IOS 12.2(17r)SX5 I see to possible way to rate-limit ICMP messages if mls QoS is running.
1- mls rate-limit unicast ip ICMP unreachable acl-drop 100 10 (enable by default, according to document : http://www.cisco.com/application/pdf/en/us/guest/netsol/ns171/c649/ccmigration_09186a0080825564.pdf page 74)
mls rate-limit unicast ip ICMP unreachable no-route 100 10
2- ip ICMP rate-limit unreachable <millisecond> (500 ms is default parameters, which permit 2 paquets per seconds, also enable by default if I'm base on : http://www.cisco.com/warp/public/707/cisco-sn-20030125-worm.shtml, ACL for IOS section)
Which one of those command have precedence over the other one ?
Which one is better over the other one ?
With the mls rate-limit option, we have the possibility to check default parameter with : "show mls rate-limit" command is exist equivalent for : "ip ICMP rate-limit unreachable"
We have also Catalyst 3550 switches, on which we have to rate-limit genaration of ICMP unreachable message for same reason as 6509. I understand the :"ip ICMP rate-limit unreachable" command is my only option "under "mls " the only option I have is QoS or aclmerge. Under thoses parameter I have no way to rate-limit ICMP message generation....
I have check in running-configuration I did not find any reference to ICMP rate-limit command, I hope this is active like explain in document http://www.cisco.com/warp/public/707/cisco-sn-20030125-worm.shtml, ACL for IOS section, (Version 12.2(44)SE3) but I would like to be able to confirm if any show command exist to confirm this.
thanks a lot !This is now showing up with running ssh over this tunnel. I can get the initial connection, but certain commands are not going through.
-
Print Command Through Cloud Printer
How can i give print command through Cloud Printer
psingh112 wrote:
How can i give print command through Cloud Printer
Hi,
Unfortunately no you can't. They are all menu/panel/gui driven
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Problem with delete command through JDBC
hi all,
I have the following code in a Java program
try
DriverManager.registerDriver
(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection(
"jdbc:oracle:thin:@localhost:1521:orcl", "airport", "airport");
catch (SQLException ex)
ex.printStackTrace();
Every statement works fine except the delete command. When i try to execute this statement:
stmt = conn.createStatement();
stmt.executeUpdate("DELETE FROM distances");
the program stalls. The table "distances" is owned by the user airport and this sql command works fine when I execute it in SQL+. The problem occurs when I try to execute a delete command through JDBC.
Can anyone help me?
Thanks...It seems that the problem ocuurs only when there are pending transactions.Correct. There are uncommitted INSERT/UPDATE/DELETEs on the table. Readers never block writers, thus having opened SELECT cursors on the table is not a problem. You writer process must be blocked by another writer process. (assuming of course no JDBC thin driver error - of which I've heard rumours there are or were quite a few - not using thin JDBC myself, thus cannot comment on whether these rumours are valid or not)
What I would think a bit concerning is that one application trashing a table (deleting all the data) while other applications/users are busy changing data in that table. Why are they changing data that will be immediately trashed after they have committed their transactions? Surely they are wasting time and resources all around (user-side and server-side) by doing work that will be immediately invalidated? This kind of points to me to a database or application design problem. -
Send a Unix command through ARD that will change a OS X admin user to a standard user.
I would love to send a Unix command through ARD that will change a OS X admin user to a standard user. The only thing I found close is
sudo dscl . -delete /Groups/admin GroupMembership USERNAME
which does remove the user from the list of admins, but they are still listed as an admin in the user preference panel, and can still use their account to authenticate for admin privileges.I'm not having any problems adding or removing users from the 'admin' group by using the syntax's
dscl . -delete /Groups/admin GroupMembership ARDusername
or
dscl . -append /Groups/admin GroupMembership ARDusername
What I'm saying is if a user is ticked as an Adminstrator in System Preferences and I run the
dscl . -delete /Groups/admin GroupMembership ARDusername syntax and remove them from the 'admin' GroupMembership they still have the Administrator box ticked in System Prefs and can administer the machine.
By the way the '/' doesn't work in the syntax in ARD.
Thanks -
Executing Unix command through Java
Hi,
Hi, I am trying to run some unix command through:
Runtime.getRuntime().exec("some unix command line");
I am running the code on Linux platform. However, I always got some errors. Here are the stack trace of them:
java.io.IOException: Cannot allocate memory
java.io.IOException: java.io.IOException: Cannot allocate memory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)Anybody has any idea why is this happening? Thanks.
AuliaHi, thanks for your reply so far. I tried the following code:
public boolean executeCommand() {
boolean success = true;
for (int i = 0; i < 5; i++) {
Process p = null;
try {
p = Runtime
.getRuntime()
.exec("ls");
InputStreamReader inR = new InputStreamReader(p
.getErrorStream());
BufferedReader buf = new BufferedReader(inR);
String line;
while ((line = buf.readLine()) != null) {
System.out.println(line);
p.destroy();
} catch (Exception e) {
System.err.println(e.getMessage());
e.printStackTrace();
success = false;
} finally {
p = null;
return success;
}However, it still throws the same exception. Yes, I put it in a tight loop, but not recursively. -
Problem in executing a unix command through java
hi
i'm trying to execute unix command through java
simple shell command like "ls -l >test " but i'm not able to see the result.
there are no error messages.
Code is:
import java.lang.Runtime.*;
class ExecDemo
public static void main(String[] args)
Runtime r=Runtime.getRuntime();
Process p=null;
try
p=r.exec("ls -l > test");
catch (Exception e)
System.out.println("Error executing nedit.");
}can anyone help please.get the the inputStream of the runtime object after executing the command.
now use the readLine() function until it becomes null.
egs: with reference to ur code.
InputStream is=p.getInputStream()
while(is!=null)
String s=is.readLine();
if the command don't execute try giving the full path also like /sbin/ls -l -
Running OpenSSL command through Java Program
How do I execute openssl commands through a java program? Any packages or wrapper classes are there? Please help.
Thanks.Hi!
What do you mean execute commands? Like: "openssl x509 -in cert.pem -out certout.pem" ??
In that case you can just try the following:
import java.lang.Runtime;
try {
Runtime.getRuntime().exec("openssl x509 -in cert.pem -out certout.pem");
}catch (Exception e) {
e.printStackTrace();
........ -
How to execute System command through Applet
Hi all,
How can I execute a System command through Applet.
I have written a code Runtime.exec("ls") in my applet but it gives me
this execption even if I certify the applet ->
java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkExec(SecurityManager.java:802)
at java.lang.Runtime.exec(Runtime.java:548)
at java.lang.Runtime.exec(Runtime.java:418)
at java.lang.Runtime.exec(Runtime.java:361)
at java.lang.Runtime.exec(Runtime.java:325)
at Test.init(Test.java:24)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at sun.plugin.navig.motif.MotifAppletViewer.maf_run(MotifAppletViewer.java:123)
at sun.plugin.navig.motif.MotifAppletViewer.run(MotifAppletViewer.java:119)
at java.lang.Thread.run(Thread.java:484)
Thanks,
Manoj.There should be a lesson about this somewhere.
When you visit a web page, does it ask you if you want to have an applet loaded?
Answer: No
So, if you visit a page, and an applet is silently loaded which can then execute commands on your computer, is this good?
Answer: No
So why do you want to do this?
Is it good for anyone?
I mean, if I want to do "ls", can't I just open a command line? Do I need an applet to do it for me?
Either you have devious desires or your hacking together something that probably shouldn't be.
If you want to learn start here:
http://java.sun.com/docs/books/tutorial/security1.2/index.html
With the article entitled:
Quick Tour of Controlling Applets
Ian -
How to execute MS DOS command through Java program???
Dear Sir,
I want to run a MS-DOS command through my Java program. I have tried "Dir" command but no other command which takes command line args doesn't work at all. Please help.
import java.io.*;
class CommandPrompt
public static void main(String[] args)
try
File file = new File("C:/Temp/Java");
String[] cmd = {"command.com","/c","md folder"};
String[] envp = {""};
Process m;
String s = "";
m = Runtime.getRuntime().exec(cmd,null,file);
BufferedReader buf = new BufferedReader(new InputStreamReader(m.getInputStream()));
while ((s = buf.readLine())!=null)
System.out.println(s);
catch (Exception ex)
System.out.println("Exception is "+ex);
ex.printStackTrace();1. This forum is for Swing-related issues only. This question should be posted to the "Java Programming" forum.
2. Please enclose your sample code in code blocks; it's much easier to read that way. See here for how it's done: http://forum.java.sun.com/faq.jsp#messageformat
3. Please provide more information, like what error messages you got and what OS you're running. For instance, if you're running WinXP, Win2k or NT4, your command processor should be "cmd.exe", not "command.com". When I made that change, your program worked for me. -
GETTING THE OUPUT OF UNIX COMMAND THROUGH JAVA
Hi Guyz...
Please help me in the below code...
My intention is to print the output of Unix command through a java program.
The Java program resides in the Unix Server only.
I have written the below java code , but its not returning any values....
String s1= "ls -lt $APPL_TOP/patch/115/odf/jtfgh.odf";
Runtime r = Runtime.getRuntime();
Process p= r.exec(s1);
StringBuffer ret=new StringBuffer();
InputStream in = p.getInputStream();
int c;
while ((c = in.read()) != -1)
{ ret.append((char)c);
} in.close();
out.println("OTUPUT : "+ ret.toString());
Can you please help me in this by debugging the existing code or giving me the exact code??
IT IS URGENT FOR MY PROJECT!!!!!!!!!!!!!!!!!!!!!!!!!!!
PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Since you are expecting the shell to expand the environment variable you need to use
String[] s1= {"sh","-c","ls -lt $APPL_TOP/patch/115/odf/jtfgh.odf"};
Also, you should read, digest and implement the recommendations of
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html .
P.S Your urgency is not my problem and SHOUTING IS CONSIDERED VERY RUDE! -
Hi all
Is it possible to run a command prompt(or DOS Command) through flash.If it possible please guide me to do that throug AS 3.0.
and
Is it Possible to run a activex (.OCX) file from flash. If it is so please guide me the way to do it
Thanks and Advance
Sankar.M.SOr create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).
-
Executing the top command through Java in linux
I am trying to execute the top command in Java as
Runtime.getRuntime().exec("top -n 1 >a.log");
But the command is not working in linux only through java.When i run the same command through the prompt it is working fine.Also all other commands are working fine.Is there any issue with top in linux?flounder wrote:
Try reading [this article|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]. If it does not answer your problem then try seaching for other similar articles.
The cited article does provide an answer to the problem since it explains how the shell meta character '>' must be interpretted by a shell. The code as presented does not invoke a shell. -
Running cmd commands through java
Hi,
I am trying to run few dos commands through java using Runtime.exec("command") but I am getting following error
commmand is cd D:\CodeMerge\A\
java.io.IOException: CreateProcess: cd.. error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at createDirectory.main(createDirectory.java:24)
Basically what I am looking for is this:
1) My program is in D:\Amit\RM
2) I want to get out to D:\ go to CodeMerge\A\.
3) Create folder with curretn date as name of the folder
Hence I am doing
rTime.exec("cd../..");
rTime.exec("cd D:\CodeMerge\A\");
rTime.exec("mkdir "+date);
Can anybody tell me why I am getting this error
JountyU can run either DOS Commands or UNIX Commands thru the following Java Program
Written By BalaNagaraju Malisetti
contact: [email protected]
import java.io.*;
public class RunBdiff
public static String rununixcmd(String v_prev_path,String v_curr_path,String v_delta_path,String v_beg,String v_len)
String s = null;
FileOutputStream fos;
DataOutputStream dos;
try
int v_int_beg = Integer.parseInt(v_beg);
int v_int_len=Integer.parseInt(v_len);
int v_int_end=(v_int_beg+v_int_len)-1;
String v_pos1=String.valueOf((v_int_beg+2));
String v_pos2=String.valueOf((v_int_end+2));
String cmd1 = "bdiff ";
String cmd2=v_prev_path;
String cmd3=" ";
String cmd4=v_curr_path;
String cmd5="| grep '^>'";
String cmd6="| cut -c";
String cmd7=v_pos1+"-"+v_pos2;
String cmd8="| sort ";
String cmd9="| uniq ";
String cmd=cmd1+cmd2+cmd3+cmd4+cmd5+cmd6+cmd7+cmd8+cmd9;
String[] commands = {"/bin/csh","-c",cmd}; //in Unix
//String[] commands = {"cmd.exe","-c",cmd}; //in Windows
Process p = Runtime.getRuntime().exec(commands);
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
// read the output from the command
File file = new File(v_delta_path);
fos = new FileOutputStream(file);
dos=new DataOutputStream(fos);
//Writing the output of bdiff command to Delta File
while ((s = stdInput.readLine()) != null)
dos.writeChars(s);
//Return Error Message to Calling Procedure
while ((s = stdError.readLine()) != null)
return s;
return s;
catch (IOException e)
return String.valueOf(e);
public static void main(String args[])
String msg=rununixcmd("/home/g_anil/MS_ADDRESS1.dat","/home/g_anil/MS_ADDRESS2.dat","/home/g_anil/MS_ADDRESS_DELTA.dat","1","9");
************************************************************************************************************************************** -
Executing a linux command through flash lite
Hello All,
i want to know one thing.. : is it possible to execute a linux command through flash lite?
I mean, say, in linux at the command prompt if i want to change the date and time then i will execute command date 082110452009.00 to set
21 August 2009, 11:45:00 .. i want to do this through actionscript2.. first i wil provide a UI asking the user to set date, time, year.. once he clicks OK i want to execute the above command with the user input..
This is because currently i m running this application on an embedded linux device which doesn't have a real time clock.. i mean once i switch off and ON the device the date and time will set back to default value 01 Jan 1970 as it happens in linux..
any suggestions?get the the inputStream of the runtime object after executing the command.
now use the readLine() function until it becomes null.
egs: with reference to ur code.
InputStream is=p.getInputStream()
while(is!=null)
String s=is.readLine();
if the command don't execute try giving the full path also like /sbin/ls -l
Maybe you are looking for
-
Icloud is no longer syncing to my outlook 2007.
My iPhone is syncing to iCloud, but iCloud is no longer syncing the contacts and calendar data to Outlook 2007. I have a PC, Toshiba laptop, running Windows Vista. It was working up until about 2 weeks ago. I need my calendar to sync accurate in o
-
Once I downloaded the new IOS 5.0 I've lost all of my photos that were stored on my PC, and I no longer have access to them on the IPOD. Cannot figure out what has happened. Please help.
-
I have an iMac, purchased in January 2011. How can I save an iMovie project to a DVD or Flash Drive which can be played on a PC or any DVD player
-
Hi, I have a doubt on Query. I need to display the Count of Closed and Pending service Orders in the report. I have info Object 0CRM_USSTAT which contains all the status of the Service Orders. Based on the document "How to Get the Document Count i
-
Reading Files using Forte ?
I was writting a little Java program to read a text file. I created a text file in Forte and wrote some code to open it and read it and I received a file not found exception. Could someone post some sample code to open and read a file using readline(