alter tablespace
alter tablespace SYSTEM add datafile 'D:\app\FOLDER_X\oradata\FOLDER_Y\SYSTEM03.DBF' size 2048 m;
connect / as sysdba
sharing some tech problems and soln
alter tablespace SYSTEM add datafile 'D:\app\FOLDER_X\oradata\FOLDER_Y\SYSTEM03.DBF' size 2048 m;
connect / as sysdba
Posted by Sajjad at 11:19 am 0 comments
javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(sdr.getClass().getPackage().getName());
javax.xml.bind.Unmarshaller unmarshaller = jaxbCtx.createUnmarshaller();
sdr = (SdResultSet) unmarshaller.unmarshal(new StringReader( responseString)); //NOI18N
ArrayList<SdResult> sdResults=(ArrayList<SdResult>) sdr.sdResults.sdResult;
for(SdResult obj:sdResults )
{
}
Posted by Sajjad at 2:27 am 0 comments
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.auth.AuthenticationException;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.auth.BasicScheme;
import org.apache.http.impl.client.CloseableHttpClient;
CloseableHttpClient client = HttpClients.createDefault();
HttpPost httpPost = new HttpPost("API_URL");
String json = "XML_CONTENT";
StringEntity entity = new StringEntity(json);
httpPost.setEntity(entity);
httpPost.setHeader("Accept", "application/xml");
httpPost.setHeader("Content-type", "application/xml");
UsernamePasswordCredentials creds
= new UsernamePasswordCredentials("USER_NAME", "PWD");
httpPost.addHeader(new BasicScheme().authenticate(creds, httpPost, null));
CloseableHttpResponse response = client.execute(httpPost);
String responseString;
responseString = EntityUtils.toString(response.getEntity(), "UTF-8");
System.out.println(response.getStatusLine().getStatusCode());
System.out.println(responseString);
// assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
client.close();
Posted by Sajjad at 5:02 am 0 comments
Labels: Java, REST CLIENT